UNPKG
tamda
Version:
latest (1.0.5)
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Practical functional programming library for TypeScript
github.com/rabelloo/tamda
rabelloo/tamda
tamda
/
src
/
number
/
max.spec.ts
17 lines
(13 loc)
•
310 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{ max }
from
'./max'
;
describe
(
'max'
,
() =>
{
it
(
'should find the greatest number in a number array'
,
() =>
{
const
array = [
6
,
14
,
3
,
50
,
25
];
const
results = [
max
(array),
max
() (array), ]; results.
forEach
(
result
=>
{
expect
(result).
toBe
(
50
); }); }); });