Closed samcowger closed 7 years ago
Do you get these test case failures or is it just me?:
### Failure in: 74:Doc
./Language/Pads/Testing.hs:27
HP file
expected: ([HP {student_num = 8, student_name = "Hermione"},HP {student_num = 3, student_name = "Ron"},HP {student_num = 5, student_name = "Harry"}],0)
but got: ([],1)
### Error in: 75:Doc
Data.ByteString.ByteString.gunfold
CallStack (from HasCallStack):
error, called at libraries/bytestring/Data/ByteString/Internal.hs:185:20 in bytestring-0.10.8.1:Data.ByteString.Internal
Cases: 112 Tried: 112 Errors: 1 Failures: 1
Examples.First: [Failed]
expected: Counts {cases = 112, tried = 112, errors = 0, failures = 0}
but got: Counts {cases = 112, tried = 112, errors = 1, failures = 1}
Examples.AI: [Failed]
expected: [Entry {host = Addr (207,136,97,49), identdID = Missing, httpID = Missing, time = 1997-10-16 01:46:51 UTC, request = Request {method = GET, url = "/turkey/amnty1.gif", version = Version {major = 1, minor = 0}}, response = 200, contentLen = ContentLength 3013}]
but got: []
proc maps file 0: [OK]
Test Cases Total
Passed 1 1
Failed 2 2
Total 3 3
If it's just me then it's a dependency issue on my end. I'm running stack test
(which runs all of First.hs
)
I got the same error at first; there’s a file path in First somewhere (around line 549) that points to Examples/data/test_file rather than data/test_file. Change that, and the test should pass.
-Sam
On Aug 23, 2017, at 6:09 PM, Karl Cronburg notifications@github.com wrote:
Do you get these test case failures or is it just me?:
Failure in: 74:Doc
./Language/Pads/Testing.hs:27 HP file expected: ([HP {student_num = 8, student_name = "Hermione"},HP {student_num = 3, student_name = "Ron"},HP {student_num = 5, student_name = "Harry"}],0) but got: ([],1)
Error in: 75:Doc
Data.ByteString.ByteString.gunfold CallStack (from HasCallStack): error, called at libraries/bytestring/Data/ByteString/Internal.hs:185:20 in bytestring-0.10.8.1:Data.ByteString.Internal Cases: 112 Tried: 112 Errors: 1 Failures: 1 Examples.First: [Failed] expected: Counts {cases = 112, tried = 112, errors = 0, failures = 0} but got: Counts {cases = 112, tried = 112, errors = 1, failures = 1} Examples.AI: [Failed] expected: [Entry {host = Addr (207,136,97,49), identdID = Missing, httpID = Missing, time = 1997-10-16 01:46:51 UTC, request = Request {method = GET, url = "/turkey/amnty1.gif", version = Version {major = 1, minor = 0}}, response = 200, contentLen = ContentLength 3013}] but got: [] proc maps file 0: [OK]
Test Cases Total
Passed 1 1
Failed 2 2
Total 3 3
If it's just me then it's a dependency issue on my end. I'm running stack test (which runs all of First.hs)— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/padsproj/pads-haskell/pull/8#issuecomment-324476967, or mute the thread https://github.com/notifications/unsubscribe-auth/AVBFqJQ7CYoC3DrWGdlhi5xyK_aBYx8Mks5sbKMwgaJpZM4PAd2k.
All set now / merged.
Added support for sub-byte data descriptions