Skip to content

Commit

Permalink
Fix a test
Browse files Browse the repository at this point in the history
It was previously passing due to a bug in Rakudo which allowed
`Bool ~~ Bool:D` to be true.

The exception currently thrown by `Config::TOML::Dumper` is actually the
right one for this test because the array doesn't pass validation.
  • Loading branch information
vrurg authored and atweiden committed Mar 2, 2022
1 parent 5d386cb commit a8f6bbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/exceptions/02-dumper.t
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ subtest({
lives-ok({ to-toml(%valid) }, 'Valid array is valid');
throws-like(
{ to-toml(%invalid) },
X::Config::TOML::Dumper::BadValue,
:message('Sorry, undefined Bool types cannot be represented as TOML keypair value'),
X::Config::TOML::Dumper::BadArray,
:message(/'Sorry, invalid TOML array.'/),
'Raise exception when array contains undefined values'
);
(%valid, %invalid) = Empty;
Expand Down

0 comments on commit a8f6bbc

Please sign in to comment.