1
- import { describe , it , expect , xit } from '@jest/globals'
1
+ import { describe , it , expect } from '@jest/globals'
2
2
import { decodedResistorValue } from './resistor-color-trio.ts'
3
3
4
4
describe ( 'Resistor Colors' , ( ) => {
@@ -8,47 +8,47 @@ describe('Resistor Colors', () => {
8
8
)
9
9
} )
10
10
11
- xit ( 'Blue and grey and brown' , ( ) => {
11
+ it ( 'Blue and grey and brown' , ( ) => {
12
12
expect ( decodedResistorValue ( [ 'blue' , 'grey' , 'brown' ] ) ) . toEqual ( '680 ohms' )
13
13
} )
14
14
15
- xit ( 'Red and black and red' , ( ) => {
15
+ it ( 'Red and black and red' , ( ) => {
16
16
expect ( decodedResistorValue ( [ 'red' , 'black' , 'red' ] ) ) . toEqual ( '2 kiloohms' )
17
17
} )
18
18
19
- xit ( 'Green and brown and orange' , ( ) => {
19
+ it ( 'Green and brown and orange' , ( ) => {
20
20
expect ( decodedResistorValue ( [ 'green' , 'brown' , 'orange' ] ) ) . toEqual (
21
21
'51 kiloohms'
22
22
)
23
23
} )
24
24
25
- xit ( 'Yellow and violet and yellow' , ( ) => {
25
+ it ( 'Yellow and violet and yellow' , ( ) => {
26
26
expect ( decodedResistorValue ( [ 'yellow' , 'violet' , 'yellow' ] ) ) . toEqual (
27
27
'470 kiloohms'
28
28
)
29
29
} )
30
30
31
- xit ( 'Blue and violet and blue' , ( ) => {
31
+ it ( 'Blue and violet and blue' , ( ) => {
32
32
expect ( decodedResistorValue ( [ 'blue' , 'violet' , 'blue' ] ) ) . toEqual (
33
33
'67 megaohms'
34
34
)
35
35
} )
36
36
37
- xit ( 'Minimum possible value' , ( ) => {
37
+ it ( 'Minimum possible value' , ( ) => {
38
38
expect ( decodedResistorValue ( [ 'black' , 'black' , 'black' ] ) ) . toEqual ( '0 ohms' )
39
39
} )
40
40
41
- xit ( 'Maximum possible value' , ( ) => {
41
+ it ( 'Maximum possible value' , ( ) => {
42
42
expect ( decodedResistorValue ( [ 'white' , 'white' , 'white' ] ) ) . toEqual (
43
43
'99 gigaohms'
44
44
)
45
45
} )
46
46
47
- xit ( 'First two colors make an invalid octal number' , ( ) => {
47
+ it ( 'First two colors make an invalid octal number' , ( ) => {
48
48
expect ( decodedResistorValue ( [ 'black' , 'grey' , 'black' ] ) ) . toEqual ( '8 ohms' )
49
49
} )
50
50
51
- xit ( 'Ignore extra colors' , ( ) => {
51
+ it ( 'Ignore extra colors' , ( ) => {
52
52
expect ( decodedResistorValue ( [ 'blue' , 'green' , 'yellow' , 'orange' ] ) ) . toEqual (
53
53
'650 kiloohms'
54
54
)
0 commit comments