Sha256: bc942cbe1e612a056e6c7b938313cdd722f6a36d0ae8061db2fbdb6b4b09e8a2

Contents?: true

Size: 1.55 KB

Versions: 3

Compression:

Stored size: 1.55 KB

Contents

# ==, !=
- true  : '1 == 1'
- false : '1 == 2'
- true  : '1 != 2'
- false : '1 != 1'

# length
- "3" : '(1 | 2 | 3).length'

# []
- "1" : '(1 | 2 | 3)[1]'
- "2" : '(1 | 2 | 3)[2]'
- "3" : '(1 | 2 | 3)[3]'

# as_string, str
- '"1" | "2" | "3"' : '(1 | 2 | 3).str'

# +
- "6" : '1 + 2 + 3'
- "2 | 3 | 4" : '1 + (1 | 2 | 3)'
- "2 | 3 | 4" : '(1 | 2 | 3) + 1'
- "2 | 3 | 4| 3 | 4 | 5 | 4 | 5 | 6" : '(1 | 2 | 3) + (1 | 2 | 3)'

# -
# - "-4" : '1 - 2 - 3' # BUG!!!
- "0 | -1 | -2" : '1 - (1 | 2 | 3)'
- "0 | 1 | 2" : '(1 | 2 | 3) - 1'
- "0 | -1 | -2 | 1 | 0 | -1 | 2 | 1 | 0" : '(1 | 2 | 3) - (1 | 2 | 3)'

# *
- "6" : '1 * 2 * 3'
- "3 | 6 | 9" : '3 * (1 | 2 | 3)'
- "3 | 6 | 9" : '(1 | 2 | 3) * 3'
- "1 | 2 | 3 | 2 | 4 | 6 | 3 | 6 | 9" : '(1 | 2 | 3) * (1 | 2 | 3)'

# /
- true : '4 / 2 == 2'
- true : '4 / (4 | 2) == (1 | 2)'
- true : '(4 | 2) / 2 == (2 | 1)'
- true : '(4 | 2) / (4 | 2) == (1 | 2 | 0 | 1)'

# upto
- '1 | 2 | 3' : '1.upto(3)'
- '1' : '1.upto(1)'
- '1' : '1.upto(0)'
- '1 | 2 | 3 | 2 | 3 | 3' : '(1 | 2 | 3).upto(3)'
- '1 | 1 | 2 | 1 | 2 | 3' : '1.upto(1 | 2 | 3)'
- '1 | 1 | 2 | 1 | 2 | 3 | 2 | 2 | 2 | 3 | 3 | 3 | 3' : '(1 | 2 | 3).upto(1 | 2 | 3)'

# downto
- '3 | 2 | 1' : '3.downto(1)'
- '3' : '3.downto(3)'
- '3' : '3.downto(4)'
- '3 | 2 | 1 | 2 | 1 | 1' : '(3 | 2 | 1).downto(1)'
- '3 | 3 | 2 | 3 | 2 | 1' : '3.downto(3 | 2 | 1)'
- '3 | 3 | 2 | 3 | 2 | 1 | 2 | 2 | 2 | 1 | 1 | 1 | 1' : '(3 | 2 | 1).downto(3 | 2 | 1)'

# max
- '3' : '(1 | 2 | 3).max'
- '2' : '(1 | 2).max'
- '1' : '1.max'

# min
- '1' : '(1 | 2 | 3).min'
- '2' : '(2 | 3).min'
- '3' : '3.min'


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pione-0.2.2 test/model/spec_integer.yml
pione-0.2.1 test/model/spec_integer.yml
pione-0.2.0 test/model/spec_integer.yml