Created
October 23, 2019 18:41
-
-
Save Whateverable/eeb27640ba927ef82c34500f72d93da5 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
075e60a56^,075e60a56 use Test; throws-like 'use v6.c; 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
¦«075e60a56^»: | |
1..2 | |
ok 1 - 'use v6.c; constant %hash = "nothash"' died | |
ok 2 - right exception type (X::TypeCheck) | |
ok 1 - constant hash requires Associative | |
¦«075e60a»: | |
1..2 | |
ok 1 - 'use v6.c; constant %hash = "nothash"' died | |
not ok 2 - right exception type (X::TypeCheck) | |
# Failed test 'right exception type (X::TypeCheck)' | |
# at SETTING::src/core/Exception.pm6 line 58 | |
# Expected: X::TypeCheck | |
# Got: X::Hash::Store::OddNumber | |
# Exception message: Odd number of elements found where hash initializer expected: | |
# Only saw: "nothash" | |
# You failed 1 test of 2 | |
not ok 1 - constant hash requires Associative | |
# Failed test 'constant hash requires Associative' | |
# at /tmp/QWcq9ZehCU line 1 | |
«exit code = 1» |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment