Sha256: a7e401b0e4f7b2476c44ad696305b945fb1b264fc12386bf70746d285d81858f

Contents?: true

Size: 988 Bytes

Versions: 9

Compression:

Stored size: 988 Bytes

Contents

embeded_variable:
  valid:
    - "{$a}"
    - "{$abc}"
    - "{$abc }"
    - "{$abc.as_string}"
    - "{$abc.m(true)}"
    - "{$a + $b}"
  invalid:
    - "{ $a}"
    - "{$a"

embeded_expr:
  valid:
    - "<? 1 ?>"
    - "<?1?>"
    - "<? 1?>"
    - "<?1 ?>"
    - "<? 1 + 1 ?>"
    - "<? $a ?>"
    - "<? 1.m ?>"
    - "<? 1.m(true) ?>"
  invalid:
    - "< ? 1 ? >"
    - "<? 1 ? >"
    - "< ? 1 ?>"
    - "<? 1"
    - "<? .. ?>"

narrative:
  valid:
    - "a"
    - "abc"
    - " abc "
    - " abc \n abc "
    - "${abc}"
    # match "{$" in the case of invalid variable name
    - "a {$ bc }"
  invalid:
    # embeded variable
    - "{$abc}"
    # broken embeded variable
    - "a {$abc"
    # embeded expression
    - "<? 1 ?>"
    # broken embeded expression
    - "<? 1"
    # empty string
    - ""

interpolators:
  valid:
    # narrative and expressions
    - "abc {$a} def"
    - "abc <? 1 ?> def"
    # as narrative
    - "{ $a"
    - "< ? 1"
  invalid:
    - "{$a"
    - "<? 1"

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pione-0.5.0 test/lang/data/interpolator-parser.yml
pione-0.5.0.alpha.2 test/lang/data/interpolator-parser.yml
pione-0.5.0.alpha.1 test/lang/data/interpolator-parser.yml
pione-0.4.2 test/lang/data/interpolator-parser.yml
pione-0.4.1 test/lang/data/interpolator-parser.yml
pione-0.4.0 test/lang/data/interpolator-parser.yml
pione-0.3.2 test/lang/data/interpolator-parser.yml
pione-0.3.1 test/lang/data/interpolator-parser.yml
pione-0.3.0 test/lang/data/interpolator-parser.yml