Skip to content

Commit 3ee1c6f

Browse files
committed
fix tests
1 parent 5f39233 commit 3ee1c6f

File tree

3 files changed

+47
-3
lines changed

3 files changed

+47
-3
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
import * as Test from "./Test.mjs";
4+
import * as Primitive_object from "rescript/lib/es6/Primitive_object.js";
5+
6+
let eq = Primitive_object.equal;
7+
8+
Test.run([
9+
[
10+
"Core_RegExpTest.res",
11+
5,
12+
13,
13+
33
14+
],
15+
"RegExp.flags basic"
16+
], new RegExp("\\w+", "gi").flags, eq, "gi");
17+
18+
Test.run([
19+
[
20+
"Core_RegExpTest.res",
21+
13,
22+
13,
23+
35
24+
],
25+
"RegExp.flags sorting"
26+
], new RegExp("\\w+", "igd").flags, eq, "dgi");
27+
28+
Test.run([
29+
[
30+
"Core_RegExpTest.res",
31+
20,
32+
20,
33+
40
34+
],
35+
"RegExp.flags empty"
36+
], new RegExp("\\w+").flags, eq, "");
37+
38+
export {
39+
eq,
40+
}
41+
/* Not a pure module */

tests/tests/src/core/Core_RegExpTest.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
let eq = (a, b) => a == b
2+
13
// Test for RegExp.flags
24
Test.run(
35
__POS_OF__("RegExp.flags basic"),

tests/tests/src/core/Core_TestSuite.mjs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import * as Core_TestTests from "./Core_TestTests.mjs";
77
import * as Core_ArrayTests from "./Core_ArrayTests.mjs";
88
import * as Core_ErrorTests from "./Core_ErrorTests.mjs";
99
import * as Core_FloatTests from "./Core_FloatTests.mjs";
10+
import * as Core_RegExpTest from "./Core_RegExpTest.mjs";
1011
import * as Core_ObjectTests from "./Core_ObjectTests.mjs";
1112
import * as Core_PromiseTest from "./Core_PromiseTest.mjs";
1213
import * as Core_ResultTests from "./Core_ResultTests.mjs";
@@ -84,8 +85,6 @@ let PatternMatching = Core_DictTests.PatternMatching;
8485

8586
let Has = Core_DictTests.Has;
8687

87-
let eq = Core_IteratorTests.eq;
88-
8988
let iterator = Core_IteratorTests.iterator;
9089

9190
let syncResult = Core_IteratorTests.syncResult;
@@ -94,6 +93,8 @@ let asyncResult = Core_IteratorTests.asyncResult;
9493

9594
let asyncIterator = Core_IteratorTests.asyncIterator;
9695

96+
let eq = Core_RegExpTest.eq;
97+
9798
export {
9899
bign,
99100
TestError,
@@ -130,10 +131,10 @@ export {
130131
intDict,
131132
PatternMatching,
132133
Has,
133-
eq,
134134
iterator,
135135
syncResult,
136136
asyncResult,
137137
asyncIterator,
138+
eq,
138139
}
139140
/* Core_IntTests Not a pure module */

0 commit comments

Comments
 (0)