Skip to content

Commit

Permalink
skipped tests missing (#359)
Browse files Browse the repository at this point in the history
* skip tests in flatten-array

* two other exercises without skips
  • Loading branch information
glennj authored Oct 29, 2024
1 parent a11f66c commit e594f60
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
12 changes: 6 additions & 6 deletions exercises/practice/bottle-song/bottle-song.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'last generic verse', ->
xit 'last generic verse', ->
result = bottleSong.recite(3, 1)
expected = [
"Three green bottles hanging on the wall,",
Expand All @@ -22,7 +22,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'verse with 2 bottles', ->
xit 'verse with 2 bottles', ->
result = bottleSong.recite(2, 1)
expected = [
"Two green bottles hanging on the wall,",
Expand All @@ -32,7 +32,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'verse with 1 bottle', ->
xit 'verse with 1 bottle', ->
result = bottleSong.recite(1, 1)
expected = [
"One green bottle hanging on the wall,",
Expand All @@ -42,7 +42,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'first two verses', ->
xit 'first two verses', ->
result = bottleSong.recite(10, 2)
expected = [
"Ten green bottles hanging on the wall,",
Expand All @@ -57,7 +57,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'last three verses', ->
xit 'last three verses', ->
result = bottleSong.recite(3, 3)
expected = [
"Three green bottles hanging on the wall,",
Expand All @@ -77,7 +77,7 @@ describe 'Bob', ->
]
expect(result).toEqual expected

it 'all verses', ->
xit 'all verses', ->
result = bottleSong.recite(10, 10)
expected = [
"Ten green bottles hanging on the wall,",
Expand Down
20 changes: 10 additions & 10 deletions exercises/practice/flatten-array/flatten-array.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,52 +6,52 @@ describe 'Flatten Array', ->
expected = []
expect(FlattenArray.flatten values).toEqual expected

it 'no nesting', ->
xit 'no nesting', ->
values = [0, 1, 2]
expected = [0, 1, 2]
expect(FlattenArray.flatten values).toEqual expected

it 'flattens array with just integers present', ->
xit 'flattens array with just integers present', ->
values = [1, [2, 3, 4, 5, 6, 7], 8]
expected = [1, 2, 3, 4, 5, 6, 7, 8]
expect(FlattenArray.flatten values).toEqual expected

it '5 level nesting', ->
xit '5 level nesting', ->
values = [0, 2, [[2, 3], 8, 100, 4, [[[50]]]], -2]
expected = [0, 2, 2, 3, 8, 100, 4, 50, -2]
expect(FlattenArray.flatten values).toEqual expected

it '6 level nesting', ->
xit '6 level nesting', ->
values = [1, [2, [[[3]]], [[4, [[[5]]]], 6, 7], 8]]
expected = [1, 2, 3, 4, 5, 6, 7, 8]
expect(FlattenArray.flatten values).toEqual expected

it 'null values are omitted from the final result', ->
xit 'null values are omitted from the final result', ->
values = [1, 2, null]
expected = [1, 2]
expect(FlattenArray.flatten values).toEqual expected

it 'consecutive null values at the front of the list are omitted from the final result', ->
xit 'consecutive null values at the front of the list are omitted from the final result', ->
values = [null, null, 3]
expected = [3]
expect(FlattenArray.flatten values).toEqual expected

it 'consecutive null values in the middle of the list are omitted from the final result', ->
xit 'consecutive null values in the middle of the list are omitted from the final result', ->
values = [1, null, null, 4]
expected = [1, 4]
expect(FlattenArray.flatten values).toEqual expected

it '6 level nest list with null values', ->
xit '6 level nest list with null values', ->
values = [0, 2, [[2, 3], 8, [[100]], null, [[null]]], -2]
expected = [0, 2, 2, 3, 8, 100, -2]
expect(FlattenArray.flatten values).toEqual expected

it 'all values in nested list are null', ->
xit 'all values in nested list are null', ->
values = [null, [[[null]]], null, null, [[null, null], null], null]
expected = []
expect(FlattenArray.flatten values).toEqual expected

it 'undefined values are omitted from the final result', ->
xit 'undefined values are omitted from the final result', ->
values = [1, 2, undefined]
expected = [1, 2]
expect(FlattenArray.flatten values).toEqual expected
38 changes: 19 additions & 19 deletions exercises/practice/matching-brackets/matching-brackets.spec.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -5,78 +5,78 @@ describe 'Matching Brackets', ->
value = '[]'
expect(MatchingBrackets.isPaired value).toBe true

it 'empty string', ->
xit 'empty string', ->
value = ''
expect(MatchingBrackets.isPaired value).toBe true

it 'unpaired brackets', ->
xit 'unpaired brackets', ->
value = '[['
expect(MatchingBrackets.isPaired value).toBe false

it 'wrong ordered brackets', ->
xit 'wrong ordered brackets', ->
value = '}{'
expect(MatchingBrackets.isPaired value).toBe false

it 'wrong closing bracket', ->
xit 'wrong closing bracket', ->
value = '{]'
expect(MatchingBrackets.isPaired value).toBe false

it 'paired with whitespace', ->
xit 'paired with whitespace', ->
value = '{ }'
expect(MatchingBrackets.isPaired value).toBe true

it 'partially paired brackets', ->
xit 'partially paired brackets', ->
value = '{[])'
expect(MatchingBrackets.isPaired value).toBe false

it 'simple nested brackets', ->
xit 'simple nested brackets', ->
value = '{[]}'
expect(MatchingBrackets.isPaired value).toBe true

it 'several paired brackets', ->
xit 'several paired brackets', ->
value = '{}[]'
expect(MatchingBrackets.isPaired value).toBe true

it 'paired and nested brackets', ->
xit 'paired and nested brackets', ->
value = '([{}({}[])])'
expect(MatchingBrackets.isPaired value).toBe true

it 'unopened closing brackets', ->
xit 'unopened closing brackets', ->
value = '{[)][]}'
expect(MatchingBrackets.isPaired value).toBe false

it 'unpaired and nested brackets', ->
xit 'unpaired and nested brackets', ->
value = '([{])'
expect(MatchingBrackets.isPaired value).toBe false

it 'paired and wrong nested brackets', ->
xit 'paired and wrong nested brackets', ->
value = '[({]})'
expect(MatchingBrackets.isPaired value).toBe false

it 'paired and wrong nested brackets but innermost are correct', ->
xit 'paired and wrong nested brackets but innermost are correct', ->
value = '[({}])'
expect(MatchingBrackets.isPaired value).toBe false

it 'paired and incomplete brackets', ->
xit 'paired and incomplete brackets', ->
value = '{}['
expect(MatchingBrackets.isPaired value).toBe false

it 'too many closing brackets', ->
xit 'too many closing brackets', ->
value = '[]]'
expect(MatchingBrackets.isPaired value).toBe false

it 'early unexpected brackets', ->
xit 'early unexpected brackets', ->
value = ')()'
expect(MatchingBrackets.isPaired value).toBe false

it 'early mismatched brackets', ->
xit 'early mismatched brackets', ->
value = '{)()'
expect(MatchingBrackets.isPaired value).toBe false

it 'math expression', ->
xit 'math expression', ->
value = '(((185 + 223.85) * 15) - 543)/2'
expect(MatchingBrackets.isPaired value).toBe true

it 'complex latex expression', ->
xit 'complex latex expression', ->
value = '\\left(\\begin{array}{cc} \\frac{1}{3} & x\\\\ \\mathrm{e}^{x} &... x^2 \\end{array}\\right)'
expect(MatchingBrackets.isPaired value).toBe true

0 comments on commit e594f60

Please sign in to comment.