Skip to content

Commit 7c626ee

Browse files
author
Hongbo Zhang
committed
[test] move raw js tests into js dir too
1 parent 9f08826 commit 7c626ee

File tree

6 files changed

+6
-56
lines changed

6 files changed

+6
-56
lines changed

jscomp/runtime/caml_string.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030

3131

32-
val add : string -> string -> string
32+
3333
val bytes_of_string : string -> bytes
3434
val bytes_to_string : bytes -> string
3535

jscomp/test/test/list_test.tst.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

lib/js/caml_string.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ function js_string_of_char(prim) {
77
return String.fromCharCode(prim);
88
}
99

10-
function add(prim, prim$1) {
11-
return prim + prim$1;
12-
}
13-
1410
function caml_string_get(s, i) {
1511
if (i >= s.length || i < 0) {
1612
throw [
@@ -166,7 +162,6 @@ function caml_string_get32(s, i) {
166162
return ((s.charCodeAt(i) + (s.charCodeAt(i + 1 | 0) << 8) | 0) + (s.charCodeAt(i + 2 | 0) << 16) | 0) + (s.charCodeAt(i + 3 | 0) << 24) | 0;
167163
}
168164

169-
exports.add = add;
170165
exports.bytes_of_string = bytes_of_string;
171166
exports.bytes_to_string = bytes_to_string;
172167
exports.caml_is_printable = caml_is_printable;

jscomp/test/raw_test/curry_raw_test.js renamed to lib/js/test/raw_test/curry_raw_test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var assert = require("assert")
2-
var printf = require("./../../stdlib/printf")
3-
var curry = require("../../runtime/curry")
2+
var printf = require("./../../printf")
3+
var curry = require("../../curry")
44
var test_formatter = require("../test_formatter")
55

66
// Fmt can be defined other ocaml module : )

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
},
1616
"scripts": {
1717
"test":
18-
"node ./node_modules/mocha/bin/mocha './lib/js/test/*_test.js' ",
18+
"node ./node_modules/mocha/bin/mocha './lib/js/test/**/*_test.js' ",
1919
"wtest":
20-
"node ./node_modules/mocha/bin/mocha './lib/js/test/*_test.js' -R spec -w",
20+
"node ./node_modules/mocha/bin/mocha './lib/js/test/**/*_test.js' -R spec -w",
2121
"cover":
22-
"node ./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/.bin/_mocha -- ./lib/js/test/*test.js",
22+
"node ./node_modules/istanbul/lib/cli.js cover --report html ./node_modules/.bin/_mocha -- ./lib/js/test/**/*test.js",
2323
"coverage":
2424
"`npm bin`/istanbul cover ./node_modules/.bin/_mocha --report lcovonly -- './lib/js/test/*test.js' -R spec",
2525
"coveralls": "npm run-script coverage && node ./node_modules/.bin/coveralls < coverage/lcov.info"

0 commit comments

Comments
 (0)