Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no-match substitution returns false now
  • Loading branch information
FROGGS committed Jan 23, 2013
1 parent 114fe8c commit bd732d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions S05-substitution/subst.t
Expand Up @@ -225,7 +225,6 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
is $a, 'adec', 'substitution worked';

$a = 'abc';
#?rakudo todo 's[...] seems to always return true?'
nok $a ~~ s[d] = 'de', 's[...] = ... returns false on failure';
is $a, 'abc', 'failed substitutions leaves string unchanged';
}
Expand Down Expand Up @@ -297,7 +296,6 @@ is '12'.subst(/(.)(.)/,{$()*2}),'24', '.. and do nifty things in closures';
is $x, 'ooooX', 's:nth(5) side effect';

$x = 'ooooo';
#?rakudo todo 'no-match substitution should return False'
nok $x ~~ s:nth(6)/./X/, 's:nth(6) return value';
is $x, 'ooooo', 's:nth(6) no side effect';
}
Expand Down

0 comments on commit bd732d6

Please sign in to comment.