Skip to content

Commit b8d5d5c

Browse files
authored
add unicode test
1 parent eaf3689 commit b8d5d5c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/tokenizer-tests.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,9 @@ QUnit.test('A simple tag with leading non alpha chars', function(assert) {
181181

182182
tokens = tokenize('<@div>');
183183
assert.deepEqual(tokens, [startTag('@div')]);
184+
185+
tokens = tokenize('<üdiv>');
186+
assert.deepEqual(tokens, [startTag('üdiv')]);
184187
});
185188

186189
QUnit.test('A simple tag with trailing spaces', function(assert) {
@@ -205,6 +208,9 @@ QUnit.test('A simple closing tag with leading non alpha chars', function(assert)
205208

206209
tokens = tokenize('</@div>');
207210
assert.deepEqual(tokens, [endTag('@div')]);
211+
212+
tokens = tokenize('</üdiv>');
213+
assert.deepEqual(tokens, [endTag('üdiv')]);
208214
});
209215

210216
QUnit.test('A simple closing tag with trailing spaces', function(assert) {

0 commit comments

Comments
 (0)