Skip to content

Commit

Permalink
test_compare_model
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisrkckl committed Dec 26, 2023
1 parent 114d2a3 commit 5fdc27f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_compare_model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from io import StringIO
from copy import deepcopy

import pytest

Expand Down Expand Up @@ -112,3 +113,13 @@ def test_compare_parfile_script():

argv = f"{args} {parfile1} {parfile2}".split()
compare_parfiles.main(argv)


def test_compare_model_binary():
m1 = get_model(StringIO(par_bin))

m2 = deepcopy(m1)
m2.TASC.value = 57001

m1.compare(m2)
m2.compare(m1)

0 comments on commit 5fdc27f

Please sign in to comment.