| 20 | | # XXX Not sure whether the following tests are correct |
| 21 | | is(+'Inf ', Inf, "numification of strings with whitspace (1)"); |
| 22 | | is(+'Inf o', 0, "numification of strings with whitspace (2)"); |
| 23 | | is(+'NaN ', NaN, "numification of strings with whitspace (3)"); |
| 24 | | is(+'NaN a', 0, "numification of strings with whitspace (4)"); |
| 25 | | is(+"Inf\t", Inf, "numification of strings with whitspace (5)"); |
| 26 | | is(+"Inf\to", 0, "numification of strings with whitspace (6)"); |
| 27 | | is(+"NaN\t", NaN, "numification of strings with whitspace (7)"); |
| 28 | | is(+"NaN\ta", 0, "numification of strings with whitspace (8)"); |
| 29 | | is(+"Inf\n", Inf, "numification of strings with whitspace (9)"); |
| 30 | | is(+"Inf\no", 0, "numification of strings with whitspace (10)"); |
| 31 | | is(+"NaN\n", NaN, "numification of strings with whitspace (11)"); |
| 32 | | is(+"NaN\na", 0, "numification of strings with whitspace (12)"); |
| 33 | | is(+"Inf\n\t ", Inf, "numification of strings with whitspace (13)"); |
| 34 | | is(+"Inf\n\t o", 0, "numification of strings with whitspace (14)"); |
| 35 | | is(+"NaN\n\t ", NaN, "numification of strings with whitspace (15)"); |
| 36 | | is(+"NaN\n\t a", 0, "numification of strings with whitspace (16)"); |
| 37 | | is(+"3 ", 3, "numification of strings with whitspace (17)"); |
| | 23 | #?rakudo skip 'Tests need specs first' |
| | 24 | { |
| | 25 | # XXX Not sure whether the following tests are correct |
| | 26 | is(+'Inf ', Inf, "numification of strings with whitspace (1)"); |
| | 27 | is(+'Inf o', 0, "numification of strings with whitspace (2)"); |
| | 28 | is(+'NaN ', NaN, "numification of strings with whitspace (3)"); |
| | 29 | is(+'NaN a', 0, "numification of strings with whitspace (4)"); |
| | 30 | is(+"Inf\t", Inf, "numification of strings with whitspace (5)"); |
| | 31 | is(+"Inf\to", 0, "numification of strings with whitspace (6)"); |
| | 32 | is(+"NaN\t", NaN, "numification of strings with whitspace (7)"); |
| | 33 | is(+"NaN\ta", 0, "numification of strings with whitspace (8)"); |
| | 34 | is(+"Inf\n", Inf, "numification of strings with whitspace (9)"); |
| | 35 | is(+"Inf\no", 0, "numification of strings with whitspace (10)"); |
| | 36 | is(+"NaN\n", NaN, "numification of strings with whitspace (11)"); |
| | 37 | is(+"NaN\na", 0, "numification of strings with whitspace (12)"); |
| | 38 | is(+"Inf\n\t ", Inf, "numification of strings with whitspace (13)"); |
| | 39 | is(+"Inf\n\t o", 0, "numification of strings with whitspace (14)"); |
| | 40 | is(+"NaN\n\t ", NaN, "numification of strings with whitspace (15)"); |
| | 41 | is(+"NaN\n\t a", 0, "numification of strings with whitspace (16)"); |
| | 42 | is(+"3 ", 3, "numification of strings with whitspace (17)"); |
| | 43 | } |