Skip to content

Commit

Permalink
add test that asserts compare returns 0 when comparing a netCDF fil…
Browse files Browse the repository at this point in the history
…e to itself.
  • Loading branch information
danielfromearth committed Dec 13, 2024
1 parent ffdbfd4 commit 302c7be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ def test_no_error_compare_2groupsTo1Subgroup(
compare_ba(ds_3dims_3vars_4coords_2groups, ds_3dims_3vars_4coords_1subgroup)


def test_zero_for_comparison_with_no_differences(ds_3dims_3vars_4coords_1subgroup):
assert compare(ds_3dims_3vars_4coords_1subgroup, ds_3dims_3vars_4coords_1subgroup) == 0


def test_var_properties(ds_3dims_3vars_4coords_1group):
with nc.Dataset(ds_3dims_3vars_4coords_1group) as ds:
result = _var_properties(ds.groups["Group1"], varname="step")
Expand Down

0 comments on commit 302c7be

Please sign in to comment.