@@ -24,6 +24,20 @@ def test_first_column_heading():
24
24
assert text == expected
25
25
26
26
27
+ def test_first_column_heading_body_only ():
28
+ text = t2a (
29
+ body = [["1" , "30" , "40" , "35" , "30" ], ["2" , "30" , "40" , "35" , "30" ]],
30
+ first_col_heading = True ,
31
+ )
32
+ expected = (
33
+ "╔═══╦═══════════════════╗\n "
34
+ "║ 1 ║ 30 40 35 30 ║\n "
35
+ "║ 2 ║ 30 40 35 30 ║\n "
36
+ "╚═══╩═══════════════════╝\n "
37
+ )
38
+ assert text == expected
39
+
40
+
27
41
def test_last_column_heading ():
28
42
text = t2a (
29
43
header = ["#" , "G" , "H" , "R" , "S" ],
@@ -45,6 +59,20 @@ def test_last_column_heading():
45
59
assert text == expected
46
60
47
61
62
+ def test_last_column_heading_body_only ():
63
+ text = t2a (
64
+ body = [["1" , "30" , "40" , "35" , "30" ], ["2" , "30" , "40" , "35" , "30" ]],
65
+ last_col_heading = True ,
66
+ )
67
+ expected = (
68
+ "╔══════════════════╦════╗\n "
69
+ "║ 1 30 40 35 ║ 30 ║\n "
70
+ "║ 2 30 40 35 ║ 30 ║\n "
71
+ "╚══════════════════╩════╝\n "
72
+ )
73
+ assert text == expected
74
+
75
+
48
76
def test_both_column_heading ():
49
77
text = t2a (
50
78
header = ["#" , "G" , "H" , "R" , "S" ],
0 commit comments