|
11 | 11 | "3.14" => 3.14,
|
12 | 12 | "true" => true,
|
13 | 13 | "false" => false,
|
| 14 | + "undef" => nil, |
14 | 15 | "'1'" => '1',
|
15 | 16 | "'a'" => 'a',
|
16 | 17 | '"a"' => 'a',
|
17 | 18 | 'a' => 'a',
|
18 | 19 | 'a::b' => 'a::b',
|
| 20 | + 'Boolean[true]' => [true], |
19 | 21 | 'Integer[1]' => [1],
|
| 22 | + 'Integer[-1]' => [-1], |
| 23 | + 'Integer[-5, -1]' => [-5, -1], |
| 24 | + 'Integer[-5, 5]' => [-5, 5], |
| 25 | + # we can't actually represent MIN_INTEGER because it's glexed as |
| 26 | + # UnaryMinusExpression containing a positive LiteralInteger and the integer |
| 27 | + # must be <= MAX_INTEGER |
| 28 | + "Integer[#{Puppet::Pops::MIN_INTEGER + 1}]" => [-0x7FFFFFFFFFFFFFFF], |
| 29 | + "Integer[0, #{Puppet::Pops::MAX_INTEGER}]" => [0, 0x7FFFFFFFFFFFFFFF], |
| 30 | + 'Integer[0, default]' => [0, :default], |
| 31 | + 'Integer[Infinity]' => ['infinity'], |
| 32 | + 'Float[Infinity]' => ['infinity'], |
| 33 | + 'Array[Integer, 1]' => ['integer', 1], |
| 34 | + 'Hash[Integer, String, 1, 3]' => ['integer', 'string', 1, 3], |
| 35 | + 'Regexp[/-1/]' => [/-1/], |
| 36 | + 'Sensitive[-1]' => [-1], |
| 37 | + 'Timespan[-5, 5]' => [-5, 5], |
| 38 | + 'Timestamp["2012-10-10", 1]' => ['2012-10-10', 1], |
| 39 | + 'Undef' => 'undef', |
20 | 40 | 'File' => "file",
|
21 | 41 |
|
22 | 42 | # special values
|
|
0 commit comments