|
Revision 2136, 338 bytes
(checked in by Chuck.Esterbrook, 3 years ago)
|
|
Fixed: "Lexer error when nesting single quotes in Strings"
ticket:166
credit:webnov8
|
-
Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 | namespace Test |
|---|
| 2 | |
|---|
| 3 | class Test |
|---|
| 4 | |
|---|
| 5 | def main |
|---|
| 6 | c as char = c'z' |
|---|
| 7 | |
|---|
| 8 | c = c'\n' |
|---|
| 9 | c = c'\t' |
|---|
| 10 | c = c'\r' |
|---|
| 11 | c = c'\0' |
|---|
| 12 | |
|---|
| 13 | c = c"A" |
|---|
| 14 | c = c"\n" |
|---|
| 15 | |
|---|
| 16 | c = c'x' |
|---|
| 17 | assert c == c'x' |
|---|
| 18 | assert c'x' == c |
|---|
| 19 | assert c <> c'y' |
|---|
| 20 | assert c'y' <> c |
|---|
| 21 | |
|---|
| 22 | assert c"'" to int == 39 |
|---|
| 23 | assert c'"' to int == 34 |
|---|
| 24 | |
|---|
| 25 | assert c'\'' == c"'" |
|---|
| 26 | assert c"\"" == c'"' |
|---|