Skip to content

Commit 4f7e570

Browse files
committed
test
1 parent 87c9be5 commit 4f7e570

File tree

5 files changed

+49
-0
lines changed

5 files changed

+49
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"name": "@testrepo/with-dev-deps",
3+
"version": "0.0.1",
4+
"keywords": [
5+
"rescript"
6+
],
7+
"author": "",
8+
"license": "MIT",
9+
"dependencies": {
10+
"rescript": "*",
11+
"@rescript/core": "*"
12+
}
13+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "@testrepo/with-dev-deps",
3+
"sources": [
4+
{
5+
"dir": "src"
6+
},
7+
{
8+
"dir": "test",
9+
"type": "dev"
10+
}
11+
],
12+
"package-specs": {
13+
"module": "es6",
14+
"in-source": true
15+
},
16+
"bs-dependencies": ["@rescript/core"],
17+
"suffix": ".res.js"
18+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Generated by ReScript, PLEASE EDIT WITH CARE
2+
3+
4+
function add(a, b) {
5+
return a + b | 0;
6+
}
7+
8+
export {
9+
add ,
10+
}
11+
/* No side effect */
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
let add = (a, b) => a + b
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
let res = FileToTest.add(1, 2)
2+
let expected = 3
3+
4+
if res !== expected {
5+
failwith("Expected " ++ expected->Js.Int.toString ++ ", got " ++ res->Js.Int.toString)
6+
}

0 commit comments

Comments
 (0)