We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98bb1a0 commit 190fd72Copy full SHA for 190fd72
TestSuite/StringTest.som
@@ -98,6 +98,7 @@ StringTest = TestCase (
98
\f a formfeed character
99
\' a single quote character
100
\\ backslash character
101
+ \0 zero byte character
102
"
103
104
self assert: '\t' equals: '\t'.
@@ -123,6 +124,10 @@ StringTest = TestCase (
123
124
125
self assert: '\\' equals: '\\'.
126
self assert: 1 equals: '\\' length.
127
+
128
+ self assert: '\0' equals: '\0'.
129
+ self assert: 1 equals: '\0' length.
130
+ self assert: 5 equals: '\0rest' length.
131
)
132
133
testHash = (
specification/SOM.g4
@@ -217,6 +217,7 @@ STString:
217
| '\\n'
218
| '\\r'
219
| '\\f'
220
+ | '\\0'
221
| '\\\''
222
| '\\\\'
223
| ~('\''| '\\')
0 commit comments