Repository navigation
Commit 2fbffa3
committed
Check every control character's round trip through the scripted chunks
everyControlCharacterSurvivesAsJson parsed each chunk but never read the
text back, and any hexadecimal or short escape parses, so a quote() that
wrote the wrong character passed for all 32 inputs. Only the separate
round-trip test read a value, for one sample string whose CR exists only
on Windows. A contentOf helper now joins the delta.content of a turn's
chunks, the loop compares it with the input for every character from
U+0000 to U+001F and for the quote/backslash and DEL/U+0085/U+2028
inputs, and the round-trip test uses the same helper.
Shown red by mutation of quote(): CR written as \n fails with
'U+000D Expected: is "a\rb" but: was "a\nb"' (the old test stayed green
on Linux), BS written as \f fails at U+0008; unchanged code 3/3 green.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VBFFnrhtvXiUeyxjmUc4R21 parent 50ae06a commit 2fbffa3
2 files changed
Lines changed: 27 additions & 13 deletions
File tree
- llama-atmosphere-agent/src/test/java/net/ladenthin/llama/atmosphere
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1583 | 1583 | | |
1584 | 1584 | | |
1585 | 1585 | | |
| 1586 | + | |
1586 | 1587 | | |
1587 | 1588 | | |
1588 | 1589 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
42 | 54 | | |
43 | 55 | | |
44 | 56 | | |
| |||
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| 67 | + | |
| 68 | + | |
55 | 69 | | |
56 | 70 | | |
57 | | - | |
| 71 | + | |
58 | 72 | | |
| 73 | + | |
59 | 74 | | |
60 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | | - | |
63 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
64 | 85 | | |
65 | 86 | | |
66 | 87 | | |
67 | 88 | | |
68 | 89 | | |
69 | 90 | | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 91 | + | |
79 | 92 | | |
80 | 93 | | |
0 commit comments