From 965a6157828696681e0d43f509cb462f8a4e8249 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Fri, 7 Jul 2017 15:42:31 -0500 Subject: [PATCH] Don't skip first _actual_ test I failed to notice with the initial commit that the first tests in these files are just the "version sanity check". This should start learners off with a useful first failure. --- exercises/nucleotide-count/tests/Tests.elm | 9 ++++----- exercises/run-length-encoding/tests/Tests.elm | 5 ++--- exercises/sublist/tests/Tests.elm | 5 ++--- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/exercises/nucleotide-count/tests/Tests.elm b/exercises/nucleotide-count/tests/Tests.elm index 89490ab..a1f2255 100644 --- a/exercises/nucleotide-count/tests/Tests.elm +++ b/exercises/nucleotide-count/tests/Tests.elm @@ -10,11 +10,10 @@ tests = describe "NucleotideCount" [ test "the solution is for the correct version of the test" <| \() -> Expect.equal 2 version - , skip <| - test "empty dna strand has no nucleotides" <| - \() -> - Expect.equal { a = 0, t = 0, c = 0, g = 0 } - (nucleotideCounts "") + , test "empty dna strand has no nucleotides" <| + \() -> + Expect.equal { a = 0, t = 0, c = 0, g = 0 } + (nucleotideCounts "") , skip <| test "repetitive sequence has only guanine" <| \() -> diff --git a/exercises/run-length-encoding/tests/Tests.elm b/exercises/run-length-encoding/tests/Tests.elm index 8c77b18..2f78268 100644 --- a/exercises/run-length-encoding/tests/Tests.elm +++ b/exercises/run-length-encoding/tests/Tests.elm @@ -10,9 +10,8 @@ tests = describe "RunLengthEncoding" [ test "the solution is for the correct version of the test" <| \() -> Expect.equal 2 version - , skip <| - test "encode simple" <| - \() -> Expect.equal "2A3B4C" (encode "AABBBCCCC") + , test "encode simple" <| + \() -> Expect.equal "2A3B4C" (encode "AABBBCCCC") , skip <| test "decode simple" <| \() -> Expect.equal "AABBBCCCC" (decode "2A3B4C") diff --git a/exercises/sublist/tests/Tests.elm b/exercises/sublist/tests/Tests.elm index 0adacc5..5ae2eaa 100644 --- a/exercises/sublist/tests/Tests.elm +++ b/exercises/sublist/tests/Tests.elm @@ -10,9 +10,8 @@ tests = describe "Sublist" [ test "the solution is for the correct version of the test" <| \() -> Expect.equal 2 version - , skip <| - test "empty equals empty" <| - \() -> Expect.equal Equal (sublist [] []) + , test "empty equals empty" <| + \() -> Expect.equal Equal (sublist [] []) , skip <| test "empty is a sublist of anything" <| \() -> Expect.equal Sublist (sublist [] [ 1, 2 ])