Skip to content

Commit c32ab51

Browse files
authored
correcting a previously overeager s/it/xit/g (#341)
[no important files changed]
1 parent 180ace4 commit c32ab51

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

exercises/practice/simple-linked-list/simple-linked-list.spec.coffee

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
describe 'Simple Linked List', ->
44
describe 'Element class', ->
5-
xit 'has constructor', ->
5+
it 'has constructor', ->
66
element = new Element 1
77
expect(element.value).toEqual 1
88

@@ -13,7 +13,7 @@ describe 'Simple Linked List', ->
1313
xit 'has null for next by default', ->
1414
element = new Element 1
1515
expect(element.next).toEqual null
16-
16+
1717
describe 'List class', ->
1818
xit 'has constructor', ->
1919
list = new LinkedList
@@ -69,23 +69,23 @@ describe 'Simple Linked List', ->
6969
list.add element2
7070
expect(list.head.next.value).toEqual 1
7171

72-
xit 'can be inxitialized wxith an array', ->
72+
xit 'can be initialized with an array', ->
7373
list = new LinkedList [1, 2, 3]
7474
expect(list.length()).toEqual 3
7575
expect(list.head.value).toEqual 3
7676

77-
describe 'Lists wxith multiple elements', ->
77+
describe 'Lists with multiple elements', ->
7878

79-
xit 'wxith correct length', ->
79+
xit 'with correct length', ->
8080
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
8181
expect(list.length()).toEqual 10
8282

83-
xit 'wxith correct head value', ->
84-
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
83+
xit 'with correct head value', ->
84+
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
8585
expect(list.head.value).toEqual 10
8686

8787
xit 'can traverse the list', ->
88-
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
88+
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
8989
expect(list.head.next.next.next.value).toEqual 7
9090

9191
xit 'can convert to an array', ->
@@ -95,23 +95,23 @@ describe 'Simple Linked List', ->
9595
xit 'head of list is final element from input array', ->
9696
list = new LinkedList [1, 2]
9797
expect(list.head.value).toEqual 2
98-
98+
9999
xit 'can convert longer list to an array', ->
100-
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
100+
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
101101
expect(list.toArray()).toEqual [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
102102

103103
xit 'can be reversed', ->
104104
list = new LinkedList [1, 2]
105105
expect(list.reverse().toArray()).toEqual [1, 2]
106106

107-
xit 'can be reversed when xit has more elements', ->
107+
xit 'can be reversed when it has more elements', ->
108108
list = new LinkedList [1, 2, 3]
109109
expect(list.reverse().toArray()).toEqual [1, 2, 3]
110110

111111
xit 'can reverse with many elements', ->
112-
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
112+
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
113113
expect(list.reverse().toArray()).toEqual [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
114114

115115
xit 'can reverse a reversal', ->
116-
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
116+
list = new LinkedList [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
117117
expect(list.reverse().reverse().toArray()).toEqual [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

0 commit comments

Comments
 (0)