Sha256: 0de6944287da3ad971081ef83d59f67867e24d794ee076b7271445f086ab74c9

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

expr_operator:
  valid:
    - "=="
    - "!="
    - ">="
    - "<="
    - ">"
    - "<"
    - "&&"
    - "||"
    - "+"
    - "-"
    - "*"
    - "%"
    - "/"
expr_operator_application:
  valid:
    - true == true
    - true != false
    - 10 >= 1
    - 1 <= 10
    - 10 > 1
    - 1 < 10
    - true && true
    - true || false
    - 1 + 1
    - 1 - 1
    - 1 * 1
    - 1 % 1
    - 1 / 1
message:
  valid:
    - .abc(1)
    - .sync
    - .abc(1, "s", '*.txt')
    - .abc(1.0.abc(3.def))
rule_expr:
  valid:
    - "&package:rule_name"
    - ":rule_name"
    - "rule_name"
  invalid:
    - "$var:rule_name"
    - "&package:$var"
    - "$var:$var"
parameters:
  valid:
    - "{}"
    - "{var: 1}"
    - "{var: true}"
    - "{var: false}"
    - "{var: 1.0}"
    - "{var: \"abc\"}"
    - "{var1: 1, var2: 2}"
    - "{var1: 1, var2: 2, var3: 3}"
    - "{\n}"
    - "{var:\n 1}"
    - "{var: \n1}"
    - "{\n var1: \n 1, \nvar2: \n 2\n }"
index:
  valid:
    - "[1]"
    - "[1,1]"
    - "[1,2,3]"
    - "[1, 2, 3]"
  invalid:
    - "[]"
    - "[1,\n2]"
expr:
  valid:
    - "1"
    - (1)
    - '"a" == "a"'
    - '"a" != "b"'
    - true && true
    - true || false
    - ($Var1 == "a") && ($Var2 == "b")
    - ($Var1 == "a") || $Var2
    - ($Var1 == ($Var2 == "a"))
    - true == true == true
    - "abc[1]"
    - "1[1]"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pione-0.1.1 test/parser/spec_expr-parser.yml
pione-0.1.0 test/parser/spec_expr-parser.yml