Created
October 23, 2019 18:55
-
-
Save Whateverable/f87fc2671f545d9c852f9bf389941475 to your computer and use it in GitHub Desktop.
committable6
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
46ef0ea08c^,46ef0ea08c use v6.c; use Test; throws-like 'constant %hash = "nothash"', X::TypeCheck, 'constant hash requires Associative'; |
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
¦«46ef0ea08c^»: | |
1..2 | |
ok 1 - 'constant %hash = "nothash"' died | |
ok 2 - right exception type (X::TypeCheck) | |
ok 1 - constant hash requires Associative | |
¦«46ef0ea»: | |
1..2 | |
ok 1 - 'constant %hash = "nothash"' died | |
not ok 2 - right exception type (X::TypeCheck) | |
# Failed test 'right exception type (X::TypeCheck)' | |
# at /tmp/whateverable/rakudo-moar/46ef0ea08cae96db25c7b5a9543ba696034408c8/share/perl6/precomp/BA67FAF2EED9C2467E8B9827ED2E8E3A713D0562/2D/2D4A7CA10695CD2B374573413D261A660E282E2A line 1 | |
# Expected: X::TypeCheck | |
# Got: X::Hash::Store::OddNumber | |
# Exception message: Odd number of elements found where hash initializer expected: | |
# Only saw: "nothash" | |
# Looks like you failed 1 test of 2 | |
not ok 1 - constant hash requires Associative | |
# Failed test 'constant hash requires Associative' | |
# at /tmp/uxjAMx32YA line 1 | |
«exit code = 1» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment