UNPKG
ts-ds-tool
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Data structure and algorithm of TypeScript
github.com/HaifengDu/ts-ds-tool
HaifengDu/ts-ds-tool
ts-ds-tool
/
src
/
algorithms
/
math
/
lcm
/
__test__
/
lcm.test.ts
14 lines
(11 loc)
•
296 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{ lcm }
from
"../lcm"
;
describe
(
"lcm test"
,
() =>
{
it
(
"lcm in one zero"
,
() =>
{
expect
(
lcm
(
10
,
0
)).
toBe
(
0
);
expect
(
lcm
(
0
,
10
)).
toBe
(
0
); });
it
(
"lcm in two number"
,
() =>
{
expect
(
lcm
(
4
,
6
)).
toBe
(
12
);
expect
(
lcm
(
12
,
6
)).
toBe
(
12
); }); });