Skip to content

Commit 00f2059

Browse files
committed
Add more tests
1 parent e602a97 commit 00f2059

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main.test.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ each(
134134
[[], [[]]],
135135
[[0], [[0]]],
136136
[[0, 1], [[0, 1]]],
137+
[[{ one: 0 }], [[{ one: 0 }]]],
138+
[[[0]], [[[0]]]],
139+
[{}, {}],
140+
[{ one: 1 }, {}],
141+
[{ one: 1 }, { one: 1 }],
142+
[{ one: { two: 1 } }, { one: { two: 1 } }],
143+
[{ one: [1] }, { one: [1] }],
137144
] as const,
138145
({ title }, [input, condition]) => {
139146
test(`Can match equality conditions | ${title}`, (t) => {
@@ -164,6 +171,12 @@ each(
164171
[[0], [[0, 1]]],
165172
[[0, 1], [[0]]],
166173
[[0], [[1]]],
174+
[[{ one: 0 }], [[{ one: 1 }]]],
175+
[[[0]], [[[1]]]],
176+
[{}, { one: 1 }],
177+
[{ one: 1 }, { one: 2 }],
178+
[{ one: { two: 1 } }, { one: { two: 2 } }],
179+
[{ one: [1] }, { one: [2] }],
167180
] as const,
168181
({ title }, [input, condition]) => {
169182
test(`Can not match equality conditions | ${title}`, (t) => {

0 commit comments

Comments
 (0)