Skip to content

Commit ec3ebcd

Browse files
authored
Add test for when None is appended to Table object (#595)
1 parent e3617af commit ec3ebcd

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

tests/test_tables.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,18 @@ def test_append_row(table):
780780
g | 2 | 2
781781
""")
782782

783+
def test_append_none(table):
784+
row = [[], None, "", 0]
785+
for i in row:
786+
table.append(i)
787+
assert_equal(table, """
788+
letter | count | points
789+
a | 9 | 1
790+
b | 3 | 2
791+
c | 3 | 2
792+
z | 1 | 10
793+
""")
794+
783795
def test_append_row_by_array(table):
784796
row = np.array(['g', 2, 2])
785797
table.append(row)

0 commit comments

Comments
 (0)