OLD | NEW |
(Empty) | |
| 1 '' |
| 2 'foo' |
| 3 'foo\ |
| 4 bar' |
| 5 "" |
| 6 "foo" |
| 7 "foo\ |
| 8 bar" |
| 9 "foo #{interpolation} bar" |
| 10 '''''' |
| 11 '''foo''' |
| 12 '''foo |
| 13 bar''' |
| 14 |
| 15 """""" |
| 16 """foo""" |
| 17 """foo |
| 18 bar""" |
| 19 """foo #{interpolation} bar""" |
| 20 |
| 21 ---------------------------------------------------- |
| 22 |
| 23 [ |
| 24 ["string", "''"], |
| 25 ["string", "'foo'"], |
| 26 ["string", "'foo\\\r\nbar'"], |
| 27 ["string", ["\"\""]], |
| 28 ["string", ["\"foo\""]], |
| 29 ["string", ["\"foo\\\r\nbar\""]], |
| 30 ["string", [ |
| 31 "\"foo ", |
| 32 ["interpolation", "#{interpolation}"], |
| 33 " bar\"" |
| 34 ]], |
| 35 |
| 36 ["multiline-string", "''''''"], |
| 37 ["multiline-string", "'''foo'''"], |
| 38 ["multiline-string", "'''foo\r\nbar'''"], |
| 39 ["multiline-string", ["\"\"\"\"\"\""]], |
| 40 ["multiline-string", ["\"\"\"foo\"\"\""]], |
| 41 ["multiline-string", ["\"\"\"foo\r\nbar\"\"\""]], |
| 42 ["multiline-string", [ |
| 43 "\"\"\"foo ", |
| 44 ["interpolation", "#{interpolation}"], |
| 45 " bar\"\"\"" |
| 46 ]] |
| 47 ] |
| 48 |
| 49 ---------------------------------------------------- |
| 50 |
| 51 Checks for single-line and multi-line strings and block strings. |
| 52 Also checks for string interpolation inside double-quoted strings. |
OLD | NEW |