Skip to content

Commit a5e503f

Browse files
committed
Updated basis file version in tests/test_highspy.py
1 parent 80b4b6f commit a5e503f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_highspy.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ def test_write_basis_before_running(self):
990990
with tempfile.NamedTemporaryFile() as f:
991991
h.writeBasis(f.name)
992992
contents = f.read()
993-
self.assertEqual(contents, b"HiGHS v1\nNone\n")
993+
self.assertEqual(contents, b"HiGHS v2\nNone\n")
994994

995995
def test_write_basis_after_running(self):
996996
if platform == "linux" or platform == "darwin":
@@ -999,7 +999,7 @@ def test_write_basis_after_running(self):
999999
with tempfile.NamedTemporaryFile() as f:
10001000
h.writeBasis(f.name)
10011001
contents = f.read()
1002-
self.assertEqual(contents, b"HiGHS v1\nValid\n# Columns 2\n1 1 \n# Rows 2\n0 0 \n")
1002+
self.assertEqual(contents, b"HiGHS v2\nValid\n# Columns 2\n1 1 \n# Rows 2\n0 0 \n")
10031003

10041004
def test_read_basis(self):
10051005
if platform == "linux" or platform == "darwin":
@@ -2159,4 +2159,4 @@ def test_lexicographic_optimization(self):
21592159
model.run()
21602160

21612161
status = model.getModelStatus()
2162-
self.assertEqual(status, highspy.HighsModelStatus.kOptimal)
2162+
self.assertEqual(status, highspy.HighsModelStatus.kOptimal)

0 commit comments

Comments
 (0)