in reply to Re^5: Transform ASCII into UniCode (escape_metas)
in thread Transform ASCII into UniCode
The \b is tricky, as I can use it to get three different results from my three subroutines:
# Add this to the list of cases: [ "a\b\\b" => '\\/', 'xy', "a\bxb"] # Results: not ok 22 - simulate # Failed test 'simulate' # at ./2.pl line 64. # got: 'xb' # expected: 'xb' ok 23 - cheat Replacement list is longer than search list at (eval 45) line 1. not ok 24 - use # Failed test 'use' # at ./2.pl line 66. # got: '\b' # expected: 'xb'
Switching to Test2::V0 explains the test 22:
not ok 22 - simulate # Failed test 'simulate' # at ./2.pl line 64. # +-------+----+-------+ # | GOT | OP | CHECK | # +-------+----+-------+ # | a\bxb | eq | xb | # +-------+----+-------+
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Transform ASCII into UniCode (escape_metas)
by LanX (Saint) on Mar 23, 2021 at 21:06 UTC | |
by LanX (Saint) on Mar 23, 2021 at 23:27 UTC |