Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
andthen returns Empty on failure
  • Loading branch information
TimToady committed Aug 8, 2015
1 parent 8a752ca commit 86a4c3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S03-operators/andthen.t
Expand Up @@ -6,7 +6,7 @@ is (1 andthen 2), 2, 'andthen basics';
is (1 andthen 2 andthen 3), 3, 'andthen chained';
is (0 andthen 1), 1, 'definedness, not truthness';
ok Any === (1 andthen Any), 'first undefined value (1)';
ok Any === (Any andthen 2), 'first undefined value (2)';
ok Empty === (Any andthen 2), 'first undefined value (2)';
my $tracker = 0;
nok (Int andthen ($tracker = 1)), 'sanity';
nok $tracker, 'andthen thunks';
Expand Down

0 comments on commit 86a4c3e

Please sign in to comment.