UNPKG
moy-fp
Version:
latest (1.3.5)
1.3.5
1.3.4
1.3.3
1.3.2
1.2.2
1.2.1
0.36.9
0.36.8
0.25.1
0.25.0
A functional programming library.
github.com/MurakamiKennzo/moy-fp
MurakamiKennzo/moy-fp
moy-fp
/
test
/
List
/
pair.test.js
18 lines
(15 loc)
•
274 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import
__
from
'../../src/Function/__'
/** * b -> a -> [a, b] */
import
pair
from
'../../src/List/pair'
test
(
'pair(not using __)'
,
() =>
{
expect
(
pair
(
2
)(
1
) ).
toEqual
([
1
,
2
]) })
test
(
'pair(using __)'
,
() =>
{
expect
(
pair
(__,
1
)(
2
) ).
toEqual
([
1
,
2
]) })