Skip to content

Commit

Permalink
add coverage for ZWNJ and ZWJ characters in IdentifierPart
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelficarra committed Jul 30, 2014
1 parent 1205e75 commit dde26ef
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion everything.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ paragraphSeparator:0
0;
var $, _, \u0078, x$, x_, x\u0030, xa, x0, x0a, x0123456789,
qwertyuiopasdfghjklzxcvbnm, QWERTYUIOPASDFGHJKLZXCVBNM;
// a representative sample of unicode letters and numbers
var œ一, ǻ둘, ɤ〩, φ, fiⅷ, ユニコード;
var œ一, ǻ둘, ɤ〩, φ, fiⅷ, ユニコード, x‌‍;

null; true; false;

Expand Down
4 changes: 4 additions & 0 deletions test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,8 @@ suite("unit", function() {
assert.notEqual(-1, programText.indexOf("\u2028"), "line separator");
assert.notEqual(-1, programText.indexOf("\u2029"), "paragraph separator");
});
test("contains identifier joining characters", function() {
assert.notEqual(-1, programText.indexOf("\u200C"), "ZWNJ");
assert.notEqual(-1, programText.indexOf("\u200D"), "ZWJ");
});
});

0 comments on commit dde26ef

Please sign in to comment.