Skip to content

Commit

Permalink
add diff test
Browse files Browse the repository at this point in the history
compare 2 files that are identical except for
block contents
  • Loading branch information
braingram committed Sep 26, 2023
1 parent abd79ac commit f3d9dab
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
Binary file added asdf/_tests/commands/tests/data/ndarray0.asdf
Binary file not shown.
Binary file added asdf/_tests/commands/tests/data/ndarray1.asdf
Binary file not shown.
1 change: 1 addition & 0 deletions asdf/_tests/commands/tests/data/ndarrays.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ndarrays at "a" differ by contents
6 changes: 6 additions & 0 deletions asdf/_tests/commands/tests/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ def test_diff_ignore(result_file, ignore):
_assert_diffs_equal(filenames, result_file, minimal=False, ignore=ignore)


def test_diff_ndarray():
filenames = ["ndarray0.asdf", "ndarray1.asdf"]
result_file = "ndarrays.diff"
_assert_diffs_equal(filenames, result_file, minimal=False)


def test_diff_block():
filenames = ["block0.asdf", "block1.asdf"]
result_file = "blocks.diff"
Expand Down

0 comments on commit f3d9dab

Please sign in to comment.