walling / unorm

JavaScript Unicode 8.0 Normalization - NFC, NFD, NFKC, NFKD.
http://git.io/unorm
Other
379 stars 45 forks source link

Use mocha to run tests #8

Closed phadej closed 11 years ago

walling commented 11 years ago

Seems good!

walling commented 11 years ago

Oups, I was too fast. Can you fix this error in the test:

Linting test/normalization.js ...ERROR
[L25:C15] W117: 'UNorm' is not defined.
         s += UNorm.UChar.fromCharCode(eval("0x" + match[0])).toString();

I think you need to export UChar in order to do that. Otherwise you can just inline that function. And instead of eval, can you just parseInt(match[0], 16)?