OLD | NEW |
| (Empty) |
1 Test converting strings and integers to identifiers and back | |
2 | |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
4 | |
5 | |
6 PASS embed.testIdentifierToString('foo') is "foo" | |
7 PASS embed.testIdentifierToString('123') is "123" | |
8 PASS embed.testIdentifierToString('null') is "null" | |
9 PASS embed.testIdentifierToString(1) is undefined | |
10 PASS embed.testIdentifierToString(-1) is undefined | |
11 PASS embed.testIdentifierToString(1.40) is undefined | |
12 PASS embed.testIdentifierToInt(1) is 1 | |
13 PASS embed.testIdentifierToInt(-1) is -1 | |
14 PASS embed.testIdentifierToInt(10) is 10 | |
15 PASS embed.testIdentifierToInt(10.234234) is 10 | |
16 PASS embed.testIdentifierToInt('foo') is 0 | |
17 PASS embed.testIdentifierToInt('10') is 0 | |
18 PASS successfullyParsed is true | |
19 | |
20 TEST COMPLETE | |
21 | |
OLD | NEW |