tests/languages/jolie/string_feature.test
raw| 1 | "" |
| 2 | "10" |
| 3 | " |
| 4 | JOLIE preserves formatting. |
| 5 | This line will be indented. |
| 6 | This line too. |
| 7 | " |
| 8 | |
| 9 | jsonValue = "{ |
| 10 | \"int\": 123, |
| 11 | \"bool\": true, |
| 12 | \"long\": 124, |
| 13 | \"double\": 123.4, |
| 14 | \"string\": \"string\", |
| 15 | \"void\": {}, |
| 16 | \"array\": [123, true,\"ciccio\",124,{}], |
| 17 | \"obj\" : { |
| 18 | \"int\": 1243, |
| 19 | \"bool\": true, |
| 20 | \"long\": 1234, |
| 21 | \"double\": 1234.4, |
| 22 | \"string\": \"string\", |
| 23 | \"void\": {} |
| 24 | } |
| 25 | }" |
| 26 | ; |
| 27 | |
| 28 | ---------------------------------------------------- |
| 29 | |
| 30 | [ |
| 31 | ["string", "\"\""], |
| 32 | ["string", "\"10\""], |
| 33 | ["string", "\"\r\nJOLIE preserves formatting.\r\n This line will be indented.\r\n This line too.\r\n\""], |
| 34 | |
| 35 | "\r\n\r\njsonValue ", |
| 36 | ["operator", "="], |
| 37 | ["string", "\"{\r\n \\\"int\\\": 123,\r\n \\\"bool\\\": true,\r\n \\\"long\\\": 124,\r\n \\\"double\\\": 123.4,\r\n \\\"string\\\": \\\"string\\\",\r\n \\\"void\\\": {},\r\n \\\"array\\\": [123, true,\\\"ciccio\\\",124,{}],\r\n \\\"obj\\\" : {\r\n \\\"int\\\": 1243,\r\n \\\"bool\\\": true,\r\n \\\"long\\\": 1234,\r\n \\\"double\\\": 1234.4,\r\n \\\"string\\\": \\\"string\\\",\r\n \\\"void\\\": {}\r\n }\r\n }\""], |
| 38 | |
| 39 | ["punctuation", ";"] |
| 40 | ] |