-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs/test: 테스트 파일 분리와 누락된 문서화 추가 (#305)
* canbe 분리 * combine 분리 * date > days로 변경 * disassemble 분리 * function 수정 및 import문 수정 * fix error * 사용되지 않는 파일 제거 * 문서화 되어 있지 않던 기능을 문서화합니다
- Loading branch information
Showing
55 changed files
with
975 additions
and
720 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: canBeChoseong | ||
--- | ||
|
||
import { Sandpack } from '@/components/Sandpack'; | ||
|
||
# canBeChoseong | ||
|
||
Check if a given character can be a choseong in Korean. | ||
|
||
```typescript | ||
function canBeChoseong(character: string): boolean; | ||
``` | ||
|
||
## Examples | ||
|
||
```typescript | ||
canBeChoseong('ㄱ'); // true | ||
canBeChoseong('ㅃ'); // true | ||
canBeChoseong('ㄱㅅ'); // false | ||
canBeChoseong('ㅏ'); // false | ||
canBeChoseong('가'); // false | ||
``` | ||
|
||
## Demo | ||
|
||
<br /> | ||
|
||
<Sandpack> | ||
|
||
```ts index.ts | ||
import { canBeChoseong } from 'es-hangul'; | ||
|
||
console.log(canBeChoseong('ㄱ')); | ||
``` | ||
|
||
</Sandpack> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: canBeChoseong | ||
--- | ||
|
||
import { Sandpack } from '@/components/Sandpack'; | ||
|
||
# canBeChoseong | ||
|
||
인자로 받은 문자가 초성으로 위치할 수 있는 문자인지 검사합니다. | ||
|
||
```typescript | ||
function canBeChoseong(character: string): boolean; | ||
``` | ||
|
||
## Examples | ||
|
||
```typescript | ||
canBeChoseong('ㄱ'); // true | ||
canBeChoseong('ㅃ'); // true | ||
canBeChoseong('ㄱㅅ'); // false | ||
canBeChoseong('ㅏ'); // false | ||
canBeChoseong('가'); // false | ||
``` | ||
|
||
## 사용해보기 | ||
|
||
<br /> | ||
|
||
<Sandpack> | ||
|
||
```ts index.ts | ||
import { canBeChoseong } from 'es-hangul'; | ||
|
||
console.log(canBeChoseong('ㅏ')); | ||
``` | ||
|
||
</Sandpack> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
title: canBeJongseong | ||
--- | ||
|
||
import { Sandpack } from '@/components/Sandpack'; | ||
|
||
# canBeJongseong | ||
|
||
Check if a given character can be a jongseong in Korean. | ||
|
||
```typescript | ||
function canBeJongseong(character: string): boolean; | ||
``` | ||
|
||
## Examples | ||
|
||
```typescript | ||
canBeJongseong('ㄱ'); // true | ||
canBeJongseong('ㄱㅅ'); // true | ||
canBeJongseong('ㅎㄹ'); // false | ||
canBeJongseong('가'); // false | ||
canBeJongseong('ㅏ'); // false | ||
canBeJongseong('ㅗㅏ'); // false | ||
``` | ||
|
||
## Demo | ||
|
||
<br /> | ||
|
||
<Sandpack> | ||
|
||
```ts index.ts | ||
import { canBeJongseong } from 'es-hangul'; | ||
|
||
console.log(canBeJongseong('ㄱ')); | ||
``` | ||
|
||
</Sandpack> |
Oops, something went wrong.