Skip to content

Commit 59f1946

Browse files
antonsyndclaude
andcommitted
test(compiler): add repr control character escaping integration tests (#564)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent edb5c31 commit 59f1946

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
'\x00'
2+
'\x07'
3+
'\x08'
4+
'\x0b'
5+
'\x0c'
6+
'\x1b'
7+
'\x1f'
8+
'\x7f'
9+
'\t'
10+
'\n'
11+
'\r'
12+
"it's \x07"
13+
'hello\x00world'
14+
'\\\x07'
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Test repr() control character escaping
2+
def main():
3+
print(repr("\x00"))
4+
print(repr("\x07"))
5+
print(repr("\x08"))
6+
print(repr("\x0b"))
7+
print(repr("\x0c"))
8+
print(repr("\x1b"))
9+
print(repr("\x1f"))
10+
print(repr("\x7f"))
11+
print(repr("\t"))
12+
print(repr("\n"))
13+
print(repr("\r"))
14+
print(repr("it's \x07"))
15+
print(repr("hello\x00world"))
16+
print(repr("\\\x07"))

0 commit comments

Comments
 (0)