Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commite9a56a4

Browse files
committed
Add basic test
1 parent374504b commite9a56a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

‎arrayStringMap.test.ts‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import{assert}from"chai"
2+
importArrayStringMapfrom"./arrayStringMap"
3+
4+
describe("arrayStringMap",()=>{
5+
constsampleArray1=[1,2]
6+
constsampleArray2=[1,2]
7+
constsampleArray3=[1,3]
8+
constsampleValue1=1
9+
constsampleValue2=2
10+
it("Empty map",()=>{
11+
constarrayStringMap=newArrayStringMap();
12+
assert(arrayStringMap.size===0,"Empty map size is 0");
13+
assert(arrayStringMap.get(sampleArray1)===undefined,"Empty map get returns undefined");
14+
assert(!arrayStringMap.has(sampleArray1),"Empty map has returns false");
15+
assert([...arrayStringMap.entries()].length===0,"Empty map entries returns empty array");
16+
})
17+
})

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp