Skip to content

Commit

Permalink
improve test output
Browse files Browse the repository at this point in the history
  • Loading branch information
cpurdy committed Feb 9, 2024
1 parent 3595217 commit 32c30dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manualTests/src/main/x/IO.x
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module TestIO {
loop: while (!in.eof) {
Byte b = in.readByte();
if (loop.count <= 12 || in.remaining <= 2) {
console.print($"[{loop.count}] '{b.toChar()}' ({b})");
console.print($"[{loop.count}] {b.toChar().quoted()} ({b})");
} else if (!dotdot) {
console.print("...");
dotdot = True;
Expand Down Expand Up @@ -126,7 +126,7 @@ module TestIO {
TextPosition pos = in.position;
loop: while (Char ch := in.next()) {
if (loop.count <= 20 || inRaw.remaining <= 10) {
console.print($"[{loop.count}] '{ch}' {pos}");
console.print($"[{loop.count}] {ch.quoted()} {pos}");
} else if (!dotdot) {
console.print("...");
dotdot = True;
Expand Down

0 comments on commit 32c30dc

Please sign in to comment.