Skip to content

Commit f317492

Browse files
committed
fix| spec
1 parent ee05ca9 commit f317492

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

13_factorial/factorial.spec.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const factorial = require("./factorial");
1+
const factorial = require("./factorial-solution");
22

33
describe('factorial', () => {
44
test('4th factorial number is 24', () => {
@@ -10,11 +10,11 @@ describe('factorial', () => {
1010
test.skip('10th factorial number is 3628800', () => {
1111
expect(factorial(10)).toBe(3628800);
1212
});
13-
test.skip('15th factorial number is 1.3076744e+12', () => {
14-
expect(factorial(15)).toBe(1.3076744e12);
13+
test.skip('15th factorial number is 1307674368000', () => {
14+
expect(factorial(15)).toBe(1307674368000);
1515
});
16-
test.skip('25th factorial number is 1.551121e+25', () => {
17-
expect(factorial(25)).toBe(1.551121e25);
16+
test.skip('25th factorial number is 1.5511210043330986e+255', () => {
17+
expect(factorial(25)).toBe(1.5511210043330986e+25);
1818
});
1919
test.skip('0th factorial number is 1', () => {
2020
expect(factorial(0)).toBe(1);

13_factorial/solution/factorial-solution.spec.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,37 @@ describe('factorial', () => {
44
test('4th factorial number is 24', () => {
55
expect(factorial(4)).toBe(24);
66
});
7-
test('6th factorial number is 720', () => {
7+
test.skip('6th factorial number is 720', () => {
88
expect(factorial(6)).toBe(720);
99
});
10-
test('10th factorial number is 3628800', () => {
10+
test.skip('10th factorial number is 3628800', () => {
1111
expect(factorial(10)).toBe(3628800);
1212
});
13-
test('15th factorial number is 1307674368000', () => {
13+
test.skip('15th factorial number is 1307674368000', () => {
1414
expect(factorial(15)).toBe(1307674368000);
1515
});
16-
test('25th factorial number is 1.5511210043330986e+255', () => {
16+
test.skip('25th factorial number is 1.5511210043330986e+255', () => {
1717
expect(factorial(25)).toBe(1.5511210043330986e+25);
1818
});
19-
test('0th factorial number is 1', () => {
19+
test.skip('0th factorial number is 1', () => {
2020
expect(factorial(0)).toBe(1);
2121
});
22-
test('doesn\'t accept negatives', () => {
22+
test.skip('doesn\'t accept negatives', () => {
2323
expect(factorial(-25)).toBe(undefined);
2424
});
25-
test('doesn\'t accept floats', () => {
25+
test.skip('doesn\'t accept floats', () => {
2626
expect(factorial(5.4)).toBe(undefined);
2727
});
28-
test('DOES accept strings', () => {
28+
test.skip('DOES accept strings', () => {
2929
expect(factorial("0")).toBe(1);
3030
});
31-
test('DOES accept strings', () => {
31+
test.skip('DOES accept strings', () => {
3232
expect(factorial("1")).toBe(1);
3333
});
34-
test('DOES accept strings', () => {
34+
test.skip('DOES accept strings', () => {
3535
expect(factorial("2")).toBe(2);
3636
});
37-
test('DOES accept strings', () => {
37+
test.skip('DOES accept strings', () => {
3838
expect(factorial("8")).toBe(40320);
3939
});
4040
});

0 commit comments

Comments
 (0)