Skip to content

Commit

Permalink
t/primitive-selector.t better diag helping for rare failure as random…
Browse files Browse the repository at this point in the history
… input
  • Loading branch information
mohawk2 committed Jan 22, 2024
1 parent 710c348 commit 4b2b72a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t/primitive-selector.t
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ subtest 'where' => sub {
my $x = sequence( 4, 3, 2 );
my $y = ( random($x) < 0.3 );
my $c = whereND( $x, $y );
ok tapprox( $c->squeeze, where( $x, $y ) ), "vs where";
my $where = where( $x, $y );
ok tapprox( $c->squeeze, $where ), "vs where" or diag "x=$x\ny=$y\nwhere=$where\nc=$c";
};

subtest 'lvalue' => sub {
Expand Down

0 comments on commit 4b2b72a

Please sign in to comment.