-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* sed flag -i for MacOS * Update to resolver 20.11 and necessary changes, including expected results. * remove macos stuff * filter architecture specific stuff with sed and change some expected results accordingly. * Filter architecture specific stuff using stack-root * Upgrade docker tag * Update lts to latest * Remove mac specific sed argument. --------- Co-authored-by: Erik Hesselink <[email protected]>
- Loading branch information
Showing
20 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module LeapYear (isLeapYear) where | ||
|
||
isLeapYear :: Integer -> Bool | ||
isLeapYear year = error "You need to implement this function." | ||
isLeapYear year = error "You need to implement this function." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 1, | ||
"status": "fail", | ||
"message": "leap> test (suite: test)\n\n\nisLeapYear\n\u001b[01;31m\u001b[K 2015 - year not divisible by 4 in common year FAILED [1]\u001b[m\u001b[K\n\nFailures:\n\n test/Tests.hs:20:55: \n 1) isLeapYear 2015 - year not divisible by 4 in common year\n expected: False\n but got: True\n\n To rerun use: --match \"/isLeapYear/2015 - year not divisible by 4 in common year/\"\n\n\n1 example, 1 failure\n\nleap> Test suite test failed\nTest suite failure for package leap-1.6.0.10\n test: exited with: ExitFailure 1\nLogs printed to console" | ||
"message": "leap> test (suite: test)\n\n\nisLeapYear\n 2015 - year not divisible by 4 in common year [✘]\n\nFailures:\n\n test/Tests.hs:20:55: \n 1) isLeapYear 2015 - year not divisible by 4 in common year\n expected: False\n but got: True\n\n To rerun use: --match \"/isLeapYear/2015 - year not divisible by 4 in common year/\"\n\n\n1 example, 1 failure\n\nleap> Test suite test failed\n\nError: [S-7282]\n Stack failed to execute the build plan.\n \n While executing the build plan, Stack encountered the following errors:\n \n TestSuiteFailure (PackageIdentifier {pkgName = PackageName \"leap\", pkgVersion = mkVersion [1,6,0,10]}) (fromList [(\"test\",Just (ExitFailure 1))]) Nothing \"\"" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 1, | ||
"status": "fail", | ||
"message": "\n/solution/src/LeapYear.hs:1:1: error:\n File name does not match module name:\n Saw: ‘Main’\n Expected: ‘LeapYear’\n\n-- While building package leap-1.6.0.10 (scroll up to its section to see the error) using:\n /opt/test-runner/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.4.1.0_ghc-9.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0 build lib:leap test:test --ghc-options \"\"\n Process exited with code: ExitFailure 1" | ||
"message": "\n/solution/src/LeapYear.hs:1:1: error:\n File name does not match module name:\n Saw: ‘Main’\n Expected: ‘LeapYear’\n\nError: [S-7282]\n Stack failed to execute the build plan.\n \n While executing the build plan, Stack encountered the following errors:\n \n [S-7011]\n While building package leap-1.6.0.10 (scroll up to its section to see the error) using:\n --verbose=1 build lib:leap test:test --ghc-options \"\"\n Process exited with code: ExitFailure 1 " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 1, | ||
"status": "fail", | ||
"message": "leap> test (suite: test)\n\n\nisLeapYear\n 2015 - year not divisible by 4 in common year\n 1970 - year divisible by 2, not divisible by 4 in common year\n 1996 - year divisible by 4, not divisible by 100 in leap year\n 1960 - year divisible by 4 and 5 is still a leap year\n 2100 - year divisible by 100, not divisible by 400 in common year\n 1900 - year divisible by 100 but not by 3 is still not a leap year\n\u001b[01;31m\u001b[K 2000 - year divisible by 400 in leap year FAILED [1]\u001b[m\u001b[K\n\nFailures:\n\n test/Tests.hs:20:55: \n 1) isLeapYear 2000 - year divisible by 400 in leap year\n expected: True\n but got: False\n\n To rerun use: --match \"/isLeapYear/2000 - year divisible by 400 in leap year/\"\n\n\n7 examples, 1 failure\n\nleap> Test suite test failed\nTest suite failure for package leap-1.6.0.10\n test: exited with: ExitFailure 1\nLogs printed to console" | ||
"message": "leap> test (suite: test)\n\n\nisLeapYear\n 2015 - year not divisible by 4 in common year [✔]\n 1970 - year divisible by 2, not divisible by 4 in common year [✔]\n 1996 - year divisible by 4, not divisible by 100 in leap year [✔]\n 1960 - year divisible by 4 and 5 is still a leap year [✔]\n 2100 - year divisible by 100, not divisible by 400 in common year [✔]\n 1900 - year divisible by 100 but not by 3 is still not a leap year [✔]\n 2000 - year divisible by 400 in leap year [✘]\n\nFailures:\n\n test/Tests.hs:20:55: \n 1) isLeapYear 2000 - year divisible by 400 in leap year\n expected: True\n but got: False\n\n To rerun use: --match \"/isLeapYear/2000 - year divisible by 400 in leap year/\"\n\n\n7 examples, 1 failure\n\nleap> Test suite test failed\n\nError: [S-7282]\n Stack failed to execute the build plan.\n \n While executing the build plan, Stack encountered the following errors:\n \n TestSuiteFailure (PackageIdentifier {pkgName = PackageName \"leap\", pkgVersion = mkVersion [1,6,0,10]}) (fromList [(\"test\",Just (ExitFailure 1))]) Nothing \"\"" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": 1, | ||
"status": "fail", | ||
"message": "\n/solution/src/LeapYear.hs:1:7: error: parse error on input ‘@#^&@#’\n |\n1 | module@#^&@# LeapYear2341\n | ^^^^^^\n\n-- While building package leap-1.6.0.10 (scroll up to its section to see the error) using:\n /opt/test-runner/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_3.4.1.0_ghc-9.0.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.4.1.0 build lib:leap test:test --ghc-options \"\"\n Process exited with code: ExitFailure 1" | ||
"message": "\n/solution/src/LeapYear.hs:1:7: error: parse error on input ‘@#^&@#’\n |\n1 | module@#^&@# LeapYear2341\n | ^^^^^^\n\nError: [S-7282]\n Stack failed to execute the build plan.\n \n While executing the build plan, Stack encountered the following errors:\n \n [S-7011]\n While building package leap-1.6.0.10 (scroll up to its section to see the error) using:\n --verbose=1 build lib:leap test:test --ghc-options \"\"\n Process exited with code: ExitFailure 1 " | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
resolver: lts-19.27 | ||
resolver: lts-20.18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters