Skip to content

Commit

Permalink
renamed h.removeVar to h.deleteVariable and test_addVar to test_addVa…
Browse files Browse the repository at this point in the history
…riable in test_highspy.py
  • Loading branch information
jajhall committed May 7, 2024
1 parent 35d3775 commit d95f337
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_highspy.py
Expand Up @@ -543,20 +543,20 @@ def test_infeasible_model(self):
# self.assertAlmostEqual(h.getObjectiveOffset()[1], 1)
# self.assertAlmostEqual(h.getObjectiveValue(), -4)

def test_addVar(self):
def test_addVariable(self):
h = highspy.Highs()
h.addVariable()
h.update()
self.assertEqual(h.numVars, 1)

def test_removeVar(self):
def test_deleteVariable(self):
h = highspy.Highs()
x = [h.addVariable(), h.addVariable()]

h.update()
self.assertEqual(h.numVars, 2)

h.removeVar(x[0])
h.deleteVariable(x[0])
self.assertEqual(h.numVars, 1)

def test_addConstr(self):
Expand Down

0 comments on commit d95f337

Please sign in to comment.