From e594f60322672bdb81ceba64fe6d4d38b4702044 Mon Sep 17 00:00:00 2001 From: Glenn Jackman Date: Tue, 29 Oct 2024 10:23:13 -0400 Subject: [PATCH] skipped tests missing (#359) * skip tests in flatten-array * two other exercises without skips --- .../bottle-song/bottle-song.spec.coffee | 12 +++--- .../flatten-array/flatten-array.spec.coffee | 20 +++++----- .../matching-brackets.spec.coffee | 38 +++++++++---------- 3 files changed, 35 insertions(+), 35 deletions(-) diff --git a/exercises/practice/bottle-song/bottle-song.spec.coffee b/exercises/practice/bottle-song/bottle-song.spec.coffee index 6e147ae1..394e793c 100644 --- a/exercises/practice/bottle-song/bottle-song.spec.coffee +++ b/exercises/practice/bottle-song/bottle-song.spec.coffee @@ -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,", @@ -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,", @@ -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,", @@ -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,", @@ -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,", @@ -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,", diff --git a/exercises/practice/flatten-array/flatten-array.spec.coffee b/exercises/practice/flatten-array/flatten-array.spec.coffee index 00d1ecbc..717b18ce 100644 --- a/exercises/practice/flatten-array/flatten-array.spec.coffee +++ b/exercises/practice/flatten-array/flatten-array.spec.coffee @@ -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 diff --git a/exercises/practice/matching-brackets/matching-brackets.spec.coffee b/exercises/practice/matching-brackets/matching-brackets.spec.coffee index fa6db05a..8597f2f5 100644 --- a/exercises/practice/matching-brackets/matching-brackets.spec.coffee +++ b/exercises/practice/matching-brackets/matching-brackets.spec.coffee @@ -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