forked from rescript-lang/rescript
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcurry_raw_test.js
42 lines (38 loc) · 968 Bytes
/
curry_raw_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
var assert = require("assert")
var printf = require("./../stdlib/printf")
var curry = require("../runtime/curry")
var test_formatter = require("./test_formatter")
// Fmt can be defined other ocaml module : )
describe("curry", function(){
it("printf", function(){
assert.deepEqual(
curry.app3(printf.sprintf,
test_formatter.f(),
32,
"ss"
),
"32ss"
)
}
)
it("printf2",function(){
assert.deepEqual(
curry.app1(curry.app2(printf.sprintf,
test_formatter.f(),
32),
"ss"
),
"32ss"
)
})
it("printf3",function(){
assert.deepEqual(
curry.app1(curry.app1(curry.app1(printf.sprintf,
test_formatter.f()),
32),
"ss"
),
"32ss"
)
})
} )