Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Correct a test.
  • Loading branch information
peschwa committed Oct 2, 2014
1 parent 4bc5f70 commit a9bfb14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S05-transliteration/trans.t
Expand Up @@ -203,8 +203,8 @@ is(" <>&".trans(:c, :s, ([' ', '>', '&'] =>

is(
'"foo & bar"'.trans(
/(' '+)/ => {' ' ~ ('&nbsp' x ($0.chars - 1))},
/\W/ => sub {"&#{ord($0)};"}
/(' '+)/ => {' ' ~ (' ' x ($0.chars - 1))},
/(\W)/ => {"&#{ord($0)};"}
),
'"foo  &   bar"',
'pairs of regexes and closures',
Expand Down

0 comments on commit a9bfb14

Please sign in to comment.