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
/
count.test.ts
6 lines
(4 loc)
•
170 B
text/typescript
View Raw
1
2
3
4
5
6
import
"./count"
;
import
{
It
}
from
"../test-utils"
;
It
(
"Gets the basic count"
,
(
g
) =>
g.
count
(),
3
);
It
(
"Gets the filtered count"
,
(
g
) =>
g.
count
(
(
i
) =>
i ===
2
),
1
);