Adjust existing tests to support the changes and add new tests to test the newly added feature. Signed-off-by: Joel Hirsbrunner <jhirsbrunner@baumer.com>
52 lines
838 B
YAML
52 lines
838 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
|
|
|
|
array-enum:
|
|
type: array
|
|
enum:
|
|
- 0
|
|
- 10
|
|
- 20
|
|
- 30
|
|
- 40
|
|
|
|
string-array-enum: # tokenizable string-array
|
|
type: string-array
|
|
enum:
|
|
- bar
|
|
- foo
|
|
|
|
no-enum:
|
|
type: string
|