UNPKG
geninq
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
A JavaScript version of the Linq library for Generators
github.com/PaulPopat/geninq
PaulPopat/geninq
geninq
/
src
/
functions
/
append.test.ts
12 lines
(10 loc)
•
239 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
"./append"
;
import
"./array"
;
import
{
It
}
from
"../test-utils"
;
It
(
"Adds an element"
,
(
s
) =>
s.
append
(
4
).
array
(), [
1
,
2
,
3
,
4
]);
It
(
"Adds an element of other type"
,
(
s
) =>
s.
append
(
"test"
).
array
(), [
1
,
2
,
3
,
"test"
, ]);