diff --git a/asdf/_tests/commands/tests/data/ndarray0.asdf b/asdf/_tests/commands/tests/data/ndarray0.asdf new file mode 100644 index 000000000..728527515 Binary files /dev/null and b/asdf/_tests/commands/tests/data/ndarray0.asdf differ diff --git a/asdf/_tests/commands/tests/data/ndarray1.asdf b/asdf/_tests/commands/tests/data/ndarray1.asdf new file mode 100644 index 000000000..8074106c7 Binary files /dev/null and b/asdf/_tests/commands/tests/data/ndarray1.asdf differ diff --git a/asdf/_tests/commands/tests/data/ndarrays.diff b/asdf/_tests/commands/tests/data/ndarrays.diff new file mode 100644 index 000000000..5e400cacb --- /dev/null +++ b/asdf/_tests/commands/tests/data/ndarrays.diff @@ -0,0 +1 @@ + ndarrays at "a" differ by contents diff --git a/asdf/_tests/commands/tests/test_diff.py b/asdf/_tests/commands/tests/test_diff.py index 45c93d8eb..d96eb6849 100644 --- a/asdf/_tests/commands/tests/test_diff.py +++ b/asdf/_tests/commands/tests/test_diff.py @@ -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"