Skip to content

all: Remove test group with the exercise's name #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 79 commits into from
May 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
c713b52
accumulate: Remove test group with exercise's name
rbasso May 10, 2017
7157446
acronym: Remove test group with exercise's name
rbasso May 10, 2017
dcef07f
all-your-base: Remove test group with exercise's name
rbasso May 10, 2017
9343096
allergies: Remove test group with exercise's name
rbasso May 10, 2017
e7a92fc
alphametics: Remove test group with exercise's name
rbasso May 10, 2017
132f010
anagram: Remove test group with exercise's name
rbasso May 10, 2017
d69f6f2
atbash-cipher: Remove test group with exercise's name
rbasso May 10, 2017
1a1b7d8
bank-account: Remove test group with exercise's name
rbasso May 10, 2017
31b61ed
beer-song: Remove test group with exercise's name
rbasso May 10, 2017
0ca6aa0
binary: Remove test group with exercise's name
rbasso May 10, 2017
ca9e31c
binary-search-tree: Remove test group with exercise's name
rbasso May 10, 2017
f495822
bob: Remove test group with exercise's name
rbasso May 10, 2017
cdb1e2b
bowling: Remove test group with exercise's name
rbasso May 10, 2017
5e7f8df
bracket-push: Remove test group with exercise's name
rbasso May 10, 2017
b2b9289
clock: Remove test group with exercise's name
rbasso May 10, 2017
9b02394
connect: Remove test group with exercise's name
rbasso May 10, 2017
5e9f03a
crypto-square: Remove test group with exercise's name
rbasso May 10, 2017
bbaf630
custom-set: Remove test group with exercise's name
rbasso May 10, 2017
c3f71c4
difference-of-squares: Remove test group with exercise's name
rbasso May 10, 2017
6b2335a
dominoes: Remove test group with exercise's name
rbasso May 10, 2017
d54eb00
etl: Remove test group with exercise's name
rbasso May 10, 2017
6c76b0d
food-chain: Remove test group with exercise's name
rbasso May 10, 2017
07438cd
forth: Remove test group with exercise's name
rbasso May 10, 2017
c1d48b5
gigasecond: Remove test group with exercise's name
rbasso May 10, 2017
cd940a5
go-counting: Remove test group with exercise's name
rbasso May 10, 2017
fd062e8
grade-school: Remove test group with exercise's name
rbasso May 10, 2017
1b88c29
grains: Remove test group with exercise's name
rbasso May 10, 2017
30ea2a4
hamming: Remove test group with exercise's name
rbasso May 10, 2017
f5933ac
hello-world: Remove test group with exercise's name
rbasso May 10, 2017
a70eebc
hexadecimal: Remove test group with exercise's name
rbasso May 10, 2017
f11c8cc
house: Remove test group with exercise's name
rbasso May 10, 2017
bc80070
kindergarten-garden: Remove test group with exercise's name
rbasso May 10, 2017
fc1bc38
largest-series-product: Remove test group with exercise's name
rbasso May 10, 2017
d80d9d6
leap: Remove test group with exercise's name
rbasso May 10, 2017
b5eba7d
lens-person: Remove test group with exercise's name
rbasso May 10, 2017
278a47f
linked-list: Remove test group with exercise's name
rbasso May 10, 2017
e993f48
list-ops: Remove test group with exercise's name
rbasso May 10, 2017
f8782b3
matrix: Remove test group with exercise's name
rbasso May 10, 2017
d11cece
meetup: Remove test group with exercise's name
rbasso May 10, 2017
40b5d3a
minesweeper: Remove test group with exercise's name
rbasso May 10, 2017
33614bd
nth-prime: Remove test group with exercise's name
rbasso May 10, 2017
5ec1613
nucleotide-count: Remove test group with exercise's name
rbasso May 10, 2017
15c3d56
ocr-numbers: Remove test group with exercise's name
rbasso May 10, 2017
d664248
octal: Remove test group with exercise's name
rbasso May 10, 2017
4135e85
palindrome-products: Remove test group with exercise's name
rbasso May 10, 2017
c598cdb
pangram: Remove test group with exercise's name
rbasso May 10, 2017
3c1fe68
parallel-letter-frequency: Remove test group with exercise's name
rbasso May 10, 2017
2935d13
pascals-triangle: Remove test group with exercise's name
rbasso May 10, 2017
0e9ab8b
phone-number: Remove test group with exercise's name
rbasso May 10, 2017
3e2c035
pig-latin: Remove test group with exercise's name
rbasso May 10, 2017
17ec369
pov: Remove test group with exercise's name
rbasso May 10, 2017
730f684
prime-factors: Remove test group with exercise's name
rbasso May 10, 2017
02ba72e
pythagorean-triplet: Remove test group with exercise's name
rbasso May 10, 2017
383d6dc
queen-attack: Remove test group with exercise's name
rbasso May 10, 2017
257b1a5
raindrops: Remove test group with exercise's name
rbasso May 10, 2017
23611dc
rna-transcription: Remove test group with exercise's name
rbasso May 10, 2017
7ad2578
robot-name: Remove test group with exercise's name
rbasso May 10, 2017
1b244a1
robot-simulator: Remove test group with exercise's name
rbasso May 10, 2017
08ff037
roman-numerals: Remove test group with exercise's name
rbasso May 10, 2017
23c8e18
run-length-encoding: Remove test group with exercise's name
rbasso May 10, 2017
994bea6
saddle-points: Remove test group with exercise's name
rbasso May 10, 2017
f687b76
say: Remove test group with exercise's name
rbasso May 10, 2017
b8ca3e4
scrabble-score: Remove test group with exercise's name
rbasso May 10, 2017
c060e4c
secret-handshake: Remove test group with exercise's name
rbasso May 10, 2017
781912a
series: Remove test group with exercise's name
rbasso May 10, 2017
9ee641b
sgf-parsing: Remove test group with exercise's name
rbasso May 10, 2017
725664e
sieve: Remove test group with exercise's name
rbasso May 10, 2017
cbdd305
simple-cipher: Remove test group with exercise's name
rbasso May 10, 2017
a087231
simple-linked-list: Remove test group with exercise's name
rbasso May 10, 2017
5b79c6d
space-age: Remove test group with exercise's name
rbasso May 10, 2017
a5043a3
strain: Remove test group with exercise's name
rbasso May 10, 2017
b87246a
sublist: Remove test group with exercise's name
rbasso May 10, 2017
ff5fc34
sum-of-multiples: Remove test group with exercise's name
rbasso May 10, 2017
47b5c67
triangle: Remove test group with exercise's name
rbasso May 10, 2017
c77219d
trinary: Remove test group with exercise's name
rbasso May 10, 2017
15847d2
word-count: Remove test group with exercise's name
rbasso May 10, 2017
f91df8b
wordy: Remove test group with exercise's name
rbasso May 10, 2017
ee37b22
zebra-puzzle: Remove test group with exercise's name
rbasso May 10, 2017
2fd6ff1
zipper: Remove test group with exercise's name
rbasso May 10, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion exercises/accumulate/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: accumulate
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
4 changes: 2 additions & 2 deletions exercises/accumulate/test/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Data.Char (toUpper)
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.Hspec (Spec, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)

import Accumulate (accumulate)
Expand All @@ -8,7 +8,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "accumulate" $ do
specs = do

let square x = x * x :: Int

Expand Down
2 changes: 1 addition & 1 deletion exercises/acronym/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: acronym
version: 1.0.0.1
version: 1.0.0.2

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/acronym/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "acronym" $
describe "abbreviate" $ for_ cases test
specs = describe "abbreviate" $ for_ cases test
where
test Case {..} = it description $ abbreviate input `shouldBe` expected

Expand Down
2 changes: 1 addition & 1 deletion exercises/all-your-base/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: all-your-base
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/all-your-base/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "all-your-base" $
describe "rebase" $ for_ cases test
specs = describe "rebase" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/allergies/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: allergies
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/allergies/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "allergies" $ do
specs = do

describe "isAllergicTo" $ do

Expand Down
2 changes: 1 addition & 1 deletion exercises/alphametics/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: alphametics
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/alphametics/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "alphametics" $
describe "solve" $ for_ cases test
specs = describe "solve" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/anagram/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: anagram
version: 1.0.1.3
version: 1.0.1.4

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/anagram/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "anagram" $
describe "anagramsFor" $ for_ cases test
specs = describe "anagramsFor" $ for_ cases test
where

test Case{..} = it description $ expression `shouldMatchList` expected
Expand Down
2 changes: 1 addition & 1 deletion exercises/atbash-cipher/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: atbash-cipher
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/atbash-cipher/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "atbash-cipher" $ do
specs = do
describe "encode" $ for_ encodeCases $ test encode
describe "decode" $ for_ decodeCases $ test decode
where
Expand Down
2 changes: 1 addition & 1 deletion exercises/bank-account/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bank-account
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
4 changes: 2 additions & 2 deletions exercises/bank-account/test/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Control.Concurrent (forkIO, newEmptyMVar, putMVar, takeMVar)
import Control.Monad (replicateM)
import Data.Foldable (for_)
import Test.Hspec (Spec, describe, it, shouldReturn)
import Test.Hspec (Spec, it, shouldReturn)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)

import BankAccount
Expand All @@ -15,7 +15,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "bank-account" $ do
specs = do

it "initial balance is 0" $ do
account <- openAccount
Expand Down
2 changes: 1 addition & 1 deletion exercises/beer-song/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: beer-song
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
18 changes: 8 additions & 10 deletions exercises/beer-song/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@ main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec

specs = describe "beer-song" $
specs = describe "song" $ do

describe "song" $ do
-- First we test the input, line by line, to give more
-- useful error messages.

-- First we test the input, line by line, to give more
-- useful error messages.
it "matches lines" $ sequence_ lineAssertions

it "matches lines" $ sequence_ lineAssertions
-- Finally, because testing lines we are unable
-- to detect a missing newline at the end of the
-- lyrics, we test the full song.

-- Finally, because testing lines we are unable
-- to detect a missing newline at the end of the
-- lyrics, we test the full song.

it "matches full song" $ song `shouldBe` lyrics
it "matches full song" $ song `shouldBe` lyrics
where

lineAssertions = zipWith checkLine [1 :: Int ..] $ zipMaybe (lines song) (lines lyrics)
Expand Down
2 changes: 1 addition & 1 deletion exercises/binary-search-tree/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: binary-search-tree
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
4 changes: 2 additions & 2 deletions exercises/binary-search-tree/test/Tests.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Test.Hspec (Spec, describe, it, shouldBe)
import Test.Hspec (Spec, it, shouldBe)
import Test.Hspec.Runner (configFastFail, defaultConfig, hspecWith)

import BST
Expand All @@ -16,7 +16,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "binary-seach-tree" $ do
specs = do

let int4 = 4 :: Int
let noInts = [] :: [Int]
Expand Down
2 changes: 1 addition & 1 deletion exercises/binary/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: binary
version: 0.9.0.1 # 2016-07-26
version: 0.9.0.2 # 2016-07-26

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/binary/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "binary" $
describe "toDecimal" $ for_ cases test
specs = describe "toDecimal" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/bob/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bob
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/bob/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "bob" $
describe "responseFor" $ for_ cases test
specs = describe "responseFor" $ for_ cases test
where
test Case{..} = it description $ responseFor input `shouldBe` expected

Expand Down
2 changes: 1 addition & 1 deletion exercises/bowling/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bowling
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/bowling/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "bowling" $
describe "roll, score" $ for_ cases test
specs = describe "roll, score" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/bracket-push/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bracket-push
version: 1.1.0.1
version: 1.1.0.2

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/bracket-push/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "bracket-push" $
describe "arePaired" $ for_ cases test
specs = describe "arePaired" $ for_ cases test
where
test Case{..} = it description $ arePaired input `shouldBe` expected

Expand Down
2 changes: 1 addition & 1 deletion exercises/clock/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: clock
version: 1.0.1.2
version: 1.0.1.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/clock/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "clock" $ do
specs = do

-- Track-specific tests.

Expand Down
2 changes: 1 addition & 1 deletion exercises/connect/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: connect
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/connect/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "connect" $
describe "winner" $ for_ cases test
specs = describe "winner" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/crypto-square/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crypto-square
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/crypto-square/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "crypto-square" $
describe "encode" $ for_ cases test
specs = describe "encode" $ for_ cases test
where

test Case{..} = describe description $ do
Expand Down
2 changes: 1 addition & 1 deletion exercises/custom-set/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: custom-set
version: 1.0.1.2
version: 1.0.1.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/custom-set/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "custom-set" $ do
specs = do

describe "standard tests" $ do

Expand Down
2 changes: 1 addition & 1 deletion exercises/difference-of-squares/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: difference-of-squares
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/difference-of-squares/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "differenceOfSquares" $ do
specs = do

describe "squareOfSums" $ do
it "square of sum 5" $ squareOfSums 5 `shouldBe` 225
Expand Down
2 changes: 1 addition & 1 deletion exercises/dominoes/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dominoes
version: 1.0.1.3
version: 1.0.1.4

dependencies:
- base
Expand Down
3 changes: 1 addition & 2 deletions exercises/dominoes/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "dominoes" $
describe "chain" $ for_ cases test
specs = describe "chain" $ for_ cases test
where

test Case{..} = it description assertion
Expand Down
2 changes: 1 addition & 1 deletion exercises/etl/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: etl
version: 1.0.0.2
version: 1.0.0.3

dependencies:
- base
Expand Down
2 changes: 1 addition & 1 deletion exercises/etl/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ main :: IO ()
main = hspecWith defaultConfig {configFastFail = True} specs

specs :: Spec
specs = describe "etl" $
specs =

describe "transform" $ do

Expand Down
2 changes: 1 addition & 1 deletion exercises/food-chain/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: food-chain
version: 0.1.0.1
version: 0.1.0.2

dependencies:
- base
Expand Down
Loading