python-devicetree/tests/test-bindings/enums.yaml
Martí Bolívar 5ab38f1157 tests: initial tests import
From zephyr commit f5409dec01c84aa8eda1830c64309abe3d5868d0.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2021-03-17 22:21:10 -07:00

36 lines
626 B
YAML

# Copyright (c) 2020 Nordic Semiconductor ASA
# SPDX-License-Identifier: BSD-3-Clause
description: Property enum test
compatible: "enums"
properties:
int-enum:
type: int
enum:
- 1
- 2
- 3
string-enum: # not tokenizable
type: string
enum:
- foo bar
- foo_bar
tokenizable-lower-enum: # tokenizable in lowercase only
type: string
enum:
- bar
- BAR
tokenizable-enum: # tokenizable in lower and uppercase
type: string
enum:
- bar
- whitespace is ok
- 123 is ok
no-enum:
type: string