@@ -4,34 +4,34 @@ describe('factorial', () => {
4
4
test ( '4th factorial number is 24' , ( ) => {
5
5
expect ( factorial ( 4 ) ) . toBe ( 24 ) ;
6
6
} ) ;
7
- test . skip ( '6th factorial number is 720' , ( ) => {
7
+ test ( '6th factorial number is 720' , ( ) => {
8
8
expect ( factorial ( 6 ) ) . toBe ( 720 ) ;
9
9
} ) ;
10
- test . skip ( '10th factorial number is 3628800' , ( ) => {
10
+ test ( '10th factorial number is 3628800' , ( ) => {
11
11
expect ( factorial ( 10 ) ) . toBe ( 3628800 ) ;
12
12
} ) ;
13
- test . skip ( '15th factorial number is 1307674368000' , ( ) => {
13
+ test ( '15th factorial number is 1307674368000' , ( ) => {
14
14
expect ( factorial ( 15 ) ) . toBe ( 1307674368000 ) ;
15
15
} ) ;
16
- test . skip ( '25th factorial number is 1.5511210043330986e+25' , ( ) => {
16
+ test ( '25th factorial number is 1.5511210043330986e+25' , ( ) => {
17
17
expect ( factorial ( 25 ) ) . toBe ( 1.5511210043330986e+25 ) ;
18
18
} ) ;
19
- test . skip ( '0th factorial number is 1' , ( ) => {
19
+ test ( '0th factorial number is 1' , ( ) => {
20
20
expect ( factorial ( 0 ) ) . toBe ( 1 ) ;
21
21
} ) ;
22
- test . skip ( 'doesn\'t accept negatives' , ( ) => {
22
+ test ( 'doesn\'t accept negatives' , ( ) => {
23
23
expect ( factorial ( - 25 ) ) . toBe ( undefined ) ;
24
24
} ) ;
25
- test . skip ( 'doesn\'t accept floats' , ( ) => {
25
+ test ( 'doesn\'t accept floats' , ( ) => {
26
26
expect ( factorial ( 5.4 ) ) . toBe ( undefined ) ;
27
27
} ) ;
28
- test . skip ( 'doesn\'t accept a number as a string' , ( ) => {
28
+ test ( 'doesn\'t accept a number as a string' , ( ) => {
29
29
expect ( factorial ( '5' ) ) . toBe ( undefined ) ;
30
30
} ) ;
31
- test . skip ( 'doesn\'t accept strings' , ( ) => {
31
+ test ( 'doesn\'t accept strings' , ( ) => {
32
32
expect ( factorial ( 'foo' ) ) . toBe ( undefined ) ;
33
33
} ) ;
34
- test . skip ( 'doesn\'t accept arrays' , ( ) => {
34
+ test ( 'doesn\'t accept arrays' , ( ) => {
35
35
expect ( factorial ( [ 5 ] ) ) . toBe ( undefined ) ;
36
36
} ) ;
37
37
} ) ;
0 commit comments