Added escape sequences
This commit is contained in:
parent
85a6a957aa
commit
e5adcff1af
12 changed files with 87 additions and 7 deletions
10
tests/programs/escape-string.q
Normal file
10
tests/programs/escape-string.q
Normal file
|
@ -0,0 +1,10 @@
|
|||
main() {
|
||||
str := "\0\t\n\r\"\'\\"
|
||||
assert str[0] == '\0'
|
||||
assert str[1] == '\t'
|
||||
assert str[2] == '\n'
|
||||
assert str[3] == '\r'
|
||||
assert str[4] == '\"'
|
||||
assert str[5] == '\''
|
||||
assert str[6] == '\\'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue