Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chunfat-setsail committed Sep 22, 2016
1 parent 0bb0396 commit 7f6f9b4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
* Created by chunfat on 9/22/16.
*/

var cantonese2pinyin = require('./cantonese2pinyin');

// Return null when not found
console.log(getCodePoint(19958));
console.log(getPinyin(199990));
console.log(getChar("一"));
console.log(cantonese2pinyin.getCodePoint(19958));
console.log(cantonese2pinyin.getPinyin(199990));
console.log(cantonese2pinyin.getChar("一"));


// Return a matched Array object
console.log(getCodePoint("一"));
console.log(getPinyin("一"));
console.log(getPinyin(19968));
console.log(getChar("yat"));
console.log(getChar(19968));
console.log(cantonese2pinyin.getCodePoint("一"));
console.log(cantonese2pinyin.getPinyin("一"));
console.log(cantonese2pinyin.getPinyin(19968));
console.log(cantonese2pinyin.getChar("yat"));
console.log(cantonese2pinyin.getChar(19968));


0 comments on commit 7f6f9b4

Please sign in to comment.