fix: Snake case style
This commit is contained in:
parent
83fcec5d60
commit
8658ec08e2
|
@ -65,8 +65,8 @@ class Server:
|
||||||
raise ServerError(result["desc"])
|
raise ServerError(result["desc"])
|
||||||
return GoalState(state_id = result["stateId"], goals = [Goal.sentence(expr)])
|
return GoalState(state_id = result["stateId"], goals = [Goal.sentence(expr)])
|
||||||
|
|
||||||
def goal_tactic(self, state: GoalState, goalId: int, tactic: Tactic) -> GoalState:
|
def goal_tactic(self, state: GoalState, goal_id: int, tactic: Tactic) -> GoalState:
|
||||||
args = { "stateId": state.state_id, "goalId": goalId }
|
args = { "stateId": state.state_id, "goalId": goal_id}
|
||||||
if isinstance(tactic, TacticNormal):
|
if isinstance(tactic, TacticNormal):
|
||||||
args["tactic"] = tactic.payload
|
args["tactic"] = tactic.payload
|
||||||
else:
|
else:
|
||||||
|
@ -99,7 +99,7 @@ class TestServer(unittest.TestCase):
|
||||||
server = Server()
|
server = Server()
|
||||||
state0 = server.goal_start("forall (p q: Prop), Or p q -> Or q p")
|
state0 = server.goal_start("forall (p q: Prop), Or p q -> Or q p")
|
||||||
self.assertEqual(state0.state_id, 0)
|
self.assertEqual(state0.state_id, 0)
|
||||||
state1 = server.goal_tactic(state0, goalId=0, tactic=TacticNormal("intro a"))
|
state1 = server.goal_tactic(state0, goal_id=0, tactic=TacticNormal("intro a"))
|
||||||
self.assertEqual(state1.state_id, 1)
|
self.assertEqual(state1.state_id, 1)
|
||||||
self.assertEqual(state1.goals, [Goal(
|
self.assertEqual(state1.goals, [Goal(
|
||||||
variables=[Variable(name="a", t="Prop")],
|
variables=[Variable(name="a", t="Prop")],
|
||||||
|
|
Loading…
Reference in New Issue