Skip to content

Commit

Permalink
Add test for when None is appended to Table object (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristannew authored Aug 7, 2023
1 parent e3617af commit ec3ebcd
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,18 @@ def test_append_row(table):
g | 2 | 2
""")

def test_append_none(table):
row = [[], None, "", 0]
for i in row:
table.append(i)
assert_equal(table, """
letter | count | points
a | 9 | 1
b | 3 | 2
c | 3 | 2
z | 1 | 10
""")

def test_append_row_by_array(table):
row = np.array(['g', 2, 2])
table.append(row)
Expand Down

0 comments on commit ec3ebcd

Please sign in to comment.