Skip to content

Commit

Permalink
Update test code.
Browse files Browse the repository at this point in the history
  • Loading branch information
anqisoft committed Jan 10, 2024
1 parent 8b42233 commit 1a374c7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ npmjs: https://www.npmjs.com/package/@dishanqian/cn_and_tw

### import
``` typescript
import { cn2tw, tw2cn } from 'https://deno.land/x/[email protected].2/index.ts';
import { cn2tw, tw2cn } from 'https://deno.land/x/[email protected].3/index.ts';
```

### test
``` typescript
['', '计算机', '天干'].forEach(from => console.log(from, cn2tw(from))));
['', '計算機', '天干'].forEach(from => console.log(from, tw2cn(from))));
['', '计算机', '天干'].forEach(from => console.log(`${from}=>${cn2tw(from)}`));
['', '計算機', '天干'].forEach(from => console.log(`${from}=>${tw2cn(from)}`));
```

## <en_us>
Expand Down

0 comments on commit 1a374c7

Please sign in to comment.