X Tutup
Skip to content

Commit cc198df

Browse files
committed
Add edge test case.
That makes unit test for `string.indexOf` failure.
1 parent d2fad97 commit cc198df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/string.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ test.each([
132132
{ inp: "hello test", searchValue: "t" },
133133
{ inp: "hello test", searchValue: "h" },
134134
{ inp: "hello test", searchValue: "invalid" },
135+
{ inp: "hello.test", searchValue: "." },
135136
])("string.indexOf (%p)", ({ inp, searchValue }) => {
136137
const result = util.transpileAndExecute(`return "${inp}".indexOf("${searchValue}")`);
137138

0 commit comments

Comments
 (0)
X Tutup