Skip to content

Commit

Permalink
Add SJIS test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomoyuki Ueda committed Oct 8, 2022
1 parent 4690e2c commit 9500309
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/unit/helper/sjis.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,20 @@ test('SJIS from char', function (t) {
t.equal(toSJIS('¬'), 0x81ca,
'Should return correct SJIS value')

t.equal(toSJIS('≧'), 0x8186,
'Should return correct SJIS value')

t.equal(toSJIS('⊥'), 0x81db,
'Should return correct SJIS value')

t.equal(toSJIS('愛'), 0x88a4,
'Should return correct SJIS value')

t.equal(toSJIS('衣'), 0x88df,
'Should return correct SJIS value')

t.equal(toSJIS('蔭'), 0x88fc,
'Should return correct SJIS value')

t.end()
})

0 comments on commit 9500309

Please sign in to comment.