Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 23, 2019 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whateverable/9a6f447872dce7318dd450478d2b5db0 to your computer and use it in GitHub Desktop.
Save Whateverable/9a6f447872dce7318dd450478d2b5db0 to your computer and use it in GitHub Desktop.
committable6
2019.07.1,HEAD use v6.c; use Test; throws-like 'constant %hash = "nothash"', X::TypeCheck, 'constant hash requires Associative';
¦«2019.07.1»:
1..2
ok 1 - '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/5PeZqmFUSd line 1
«exit code = 1»
¦«HEAD(c745d6b)»:
1..2
ok 1 - 'constant %hash = "nothash"' died
not ok 2 - right exception type (X::TypeCheck)
# Failed test 'right exception type (X::TypeCheck)'
# at SETTING::src/core.c/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/5PeZqmFUSd line 1
«exit code = 1»
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment