Skip to content

Commit 87b3e31

Browse files
committed
Added test to check for num_cols
1 parent 5e235ca commit 87b3e31

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

tests/navdata/test_navdata.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ def test_init_np(numpy_array):
175175
with pytest.raises(TypeError):
176176
data = NavData(numpy_array=pd.DataFrame([0]))
177177

178+
179+
def test_len_num_cols_rows(data):
180+
assert len(data) == 6
181+
assert data.num_cols == len(data)
182+
assert data.rows == ['names', 'integers', 'floats', 'strings']
183+
184+
185+
178186
@pytest.mark.parametrize('pandas_df',
179187
[
180188
lazy_fixture("df_simple"),

0 commit comments

Comments
 (0)