Skip to content

Instantly share code, notes, and snippets.

@japhb
Created July 24, 2022 21:40
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 japhb/fc7aea8417fd395a88c3b18b5806cfe5 to your computer and use it in GitHub Desktop.
Save japhb/fc7aea8417fd395a88c3b18b5806cfe5 to your computer and use it in GitHub Desktop.
Failure testing Getopt::Long after coercion new-disp rewrite
===> Testing: Getopt::Long:ver<0.3.3>
[Getopt::Long] # Failed test 'right exception type (Getopt::Long::Exception)'
[Getopt::Long] # at SETTING::src/core.c/Exception.pm6 line 64
[Getopt::Long] # Expected: Getopt::Long::Exception
[Getopt::Long] # Got: X::TypeCheck::Binding::Parameter
[Getopt::Long] # Exception message: Type check failed in binding to parameter '$bar'; expected Signature(Str) but got Foo (Foo.new(value => 1))
[Getopt::Long] # You failed 1 test of 2
[Getopt::Long] # Failed test 'No conversion known for type Signature'
[Getopt::Long] # at t/basic.t line 143
[Getopt::Long] # You failed 1 test of 44
[Getopt::Long] t/basic.t ..
[Getopt::Long] Dubious, test returned 1 (wstat 256, 0x100)
[Getopt::Long] Failed 1/44 subtests
[Getopt::Long] Test Summary Report
[Getopt::Long] -------------------
[Getopt::Long] t/basic.t (Wstat: 256 Tests: 44 Failed: 1)
[Getopt::Long] Failed test: 40
[Getopt::Long] Non-zero exit status: 1
[Getopt::Long] Files=1, Tests=44, 4 wallclock secs ( 0.02 usr 0.00 sys + 4.85 cusr 0.17 csys = 5.04 CPU)
[Getopt::Long] Result: FAIL
===> Testing [FAIL]: Getopt::Long:ver<0.3.3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment