Skip to content

Commit 37e926b

Browse files
committed
freeze rendered output: golden-file tests for render helpers
1 parent c2af7a5 commit 37e926b

11 files changed

Lines changed: 199 additions & 0 deletions

‎tests/golden/assistant_content_empty.gold‎

Whitespace-only changes.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
● first line
2+
 second line
3+
 third line
4+

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
● Heading One
2+

3+
 A paragraph with bold word and inline code to exercise the
4+
 inline markdown handlers.
5+

6+
 Subheading
7+

8+
 ┃ echo "fenced code"
9+
 ┃ let x = 42
10+

11+
 ┌─────────┬──────────────────┐
12+
│ Service │ Cost │
13+
├─────────┼──────────────────┤
14+
│ A │ free, sort of │
15+
├─────────┼──────────────────┤
16+
│ B │ $0.17 per minute │
17+
└─────────┴──────────────────┘
18+

19+
 End paragraph.
20+

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
● Hello there!
2+


‎tests/golden/token_line_empty.gold‎

Whitespace-only changes.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
 ○ 1% ↑2.3k ↻0 ↓31
2+

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
 ○ 9% ↑4.3k ↻8.0k ↓487 7s
2+

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
● bash exit 1

‎tests/golden/tool_banner_ok.gold‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
● bash echo hello (2s)

‎tests/golden/tool_pending.gold‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
● read src/foo.nim
2+


0 commit comments

Comments
 (0)