Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Another victim of List.WHICH removal.
Happily, restoring the behavior in the original advent article.
  • Loading branch information
jnthn committed Sep 4, 2015
1 parent 18b7541 commit 3a02f73
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions integration/advent2013-day07.t
Expand Up @@ -10,15 +10,6 @@ only sub infix:<<"\x2286">>($a, $b --> Bool) {
is set( <a b c> ) set( <a b c d> ), True, 'a b c ⊆ a b c d';
is set( <a b c d> ) set( <a b c> ), False, 'a b c d ⊆ a b c';
is <a b c> <a b d>, False, 'a b c ⊆ a b d';

# in the advent article, it returned False. Since then, S07:55
#
# "A C<List> is immutable, although the elements of a C<List>
# may be either mutable or immutable."
#
# is interpreted in such a way that Lists have become value based,
# and that means that this test should return True
is <a b c> === <a b c>, True, 'a b c === a b c';

is <a b c> === <a b c>, False, 'a b c === a b c';
is <a b c> eqv <a b c>, True, 'a b c eqv a b c';
is set(<a b c>).WHICH, 'Set|Str|a Str|b Str|c', 'is .WHICH what we expect';

0 comments on commit 3a02f73

Please sign in to comment.