|
10 | 10 | # Define the test cases as a list of (input, expected_output) tuples |
11 | 11 | # fmt:off |
12 | 12 | test_cases = [ |
13 | | - ("This is a test string with r'abc' and R\"def\".", "This is a test string with BASE85_DECODE('VPaz') and BASE85_DECODE('WMyU')."), |
14 | | - ("r'123' should become BASE85_DECODE('F)}j')", "BASE85_DECODE('F)}j') should become BASE85_DECODE('F)}j')"), |
15 | | - ('R"xyz" should become BASE85_DECODE(\'czJp\')', 'BASE85_DECODE(\'czJp\') should become BASE85_DECODE(\'czJp\')'), |
16 | | - ("Mix of r'one' and R\"two\"", "Mix of BASE85_DECODE('Z*FA') and BASE85_DECODE('ba!t')"), |
| 13 | + ("This is a test string with r'abc' and R\"def\".", "This is a test string with BASE64_DECODE('YWJj') and BASE64_DECODE('ZGVm')."), |
| 14 | + ("r'123' should become BASE64_DECODE('F)}j')", "BASE64_DECODE('MTIz') should become BASE64_DECODE('F)}j')"), |
| 15 | + ('R"xyz" should become BASE64_DECODE(\'czJp\')', 'BASE64_DECODE(\'eHl6\') should become BASE64_DECODE(\'czJp\')'), |
| 16 | + ("Mix of r'one' and R\"two\"", "Mix of BASE64_DECODE('b25l') and BASE64_DECODE('dHdv')"), |
17 | 17 | ("No prefixed strings here.", "No prefixed strings here."), |
18 | | - ("R'' and r\"\" should be handled.", "BASE85_DECODE('') and BASE85_DECODE('') should be handled."), |
19 | | - ("I am escaping r'\\1' and R'\\1'", "I am escaping BASE85_DECODE('Trm') and BASE85_DECODE('Trm')"), |
20 | | - ("I am also escaping r'\1' and r'\1'", "I am also escaping BASE85_DECODE('0R') and BASE85_DECODE('0R')"), |
| 18 | + ("R'' and r\"\" should be handled.", "BASE64_DECODE('') and BASE64_DECODE('') should be handled."), |
| 19 | + ("I am escaping r'\\1' and R'\\1'", "I am escaping BASE64_DECODE('XDE=') and BASE64_DECODE('XDE=')"), |
| 20 | + ("I am also escaping r'\1' and r'\1'", "I am also escaping BASE64_DECODE('AQ==') and BASE64_DECODE('AQ==')"), |
21 | 21 | ] |
22 | 22 | # fmt:on |
23 | 23 |
|
|
0 commit comments