From dc4655d2de095fa5634d9b9c148ecb64fa9ba6d6 Mon Sep 17 00:00:00 2001 From: sharno Date: Thu, 10 Oct 2019 08:02:25 -0400 Subject: [PATCH] upgrade matrix to 1.3.0 --- exercises/matrix/package.yaml | 2 +- exercises/matrix/test/Tests.hs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/matrix/package.yaml b/exercises/matrix/package.yaml index 4aef570af..2777cca1d 100644 --- a/exercises/matrix/package.yaml +++ b/exercises/matrix/package.yaml @@ -1,5 +1,5 @@ name: matrix -version: 1.1.0.7 +version: 1.3.0.8 dependencies: - base diff --git a/exercises/matrix/test/Tests.hs b/exercises/matrix/test/Tests.hs index 052fb9f25..b9a565656 100644 --- a/exercises/matrix/test/Tests.hs +++ b/exercises/matrix/test/Tests.hs @@ -36,8 +36,8 @@ specs = do it "extract row where numbers have different widths" $ row 2 (intMatrix "1 2\n10 20") `shouldBe` vector [10, 20] - it "can extract row from non-square matrix" $ - row 3 (intMatrix "1 2 3\n4 5 6\n7 8 9\n8 7 6") `shouldBe` vector [7, 8, 9] + it "can extract row from non-square matrix with no corresponding column" $ + row 4 (intMatrix "1 2 3\n4 5 6\n7 8 9\n8 7 6") `shouldBe` vector [8, 7, 6] it "extract column from one number matrix" $ column 1 (intMatrix "1") `shouldBe` vector [1] @@ -45,8 +45,8 @@ specs = do it "can extract column" $ column 3 (intMatrix "1 2 3\n4 5 6\n7 8 9") `shouldBe` vector [3, 6, 9] - it "can extract column from non-square matrix" $ - column 3 (intMatrix "1 2 3\n4 5 6\n7 8 9\n8 7 6") `shouldBe` vector [3, 6, 9, 6] + it "can extract column from non-square matrix with no corresponding row" $ + column 4 (intMatrix "1 2 3 4\n5 6 7 8\n9 8 7 6") `shouldBe` vector [4, 8, 6] it "extract column where numbers have different widths" $ column 2 (intMatrix "89 1903 3\n18 3 1\n9 4 800") `shouldBe` vector [1903, 3, 4]