Skip to content

Commit 268cc91

Browse files
committed
tests(textframe): Add snapshot baselines
why: Store expected ASCII frame output for regression testing what: - Add snapshots for basic, empty, and overflow frame rendering - Add snapshot for nested TextFrame serialization
1 parent 17f8b3a commit 268cc91

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# serializer version: 1
2+
# name: test_frame_rendering[basic_success]
3+
'''
4+
+----------+
5+
|hello |
6+
|world |
7+
+----------+
8+
'''
9+
# ---
10+
# name: test_frame_rendering[empty_frame]
11+
'''
12+
+-----+
13+
| |
14+
| |
15+
+-----+
16+
'''
17+
# ---
18+
# name: test_frame_rendering[overflow_width]
19+
'''
20+
+---------------------+
21+
|this line is too long|
22+
|row 2 |
23+
|row 3 |
24+
+---------------------+
25+
+---------------------+
26+
| ...........|
27+
| ...........|
28+
|.....................|
29+
+---------------------+
30+
'''
31+
# ---
32+
# name: test_nested_serialization
33+
list([
34+
'''
35+
+-----+
36+
|one |
37+
+-----+
38+
''',
39+
'''
40+
+-----+
41+
|two |
42+
+-----+
43+
''',
44+
])
45+
# ---

0 commit comments

Comments
 (0)