We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d9bea0 commit 80dbdf8Copy full SHA for 80dbdf8
tests/test_planning.py
@@ -18,17 +18,33 @@ def test_action():
18
assert not a.check_precond(test_kb, args)
19
20
21
-def test_air_cargo():
+def test_air_cargo_1():
22
p = air_cargo()
23
assert p.goal_test() is False
24
- solution = [expr("Load(C1 , P1, SFO)"),
+ solution_1 = [expr("Load(C1 , P1, SFO)"),
25
expr("Fly(P1, SFO, JFK)"),
26
expr("Unload(C1, P1, JFK)"),
27
expr("Load(C2, P2, JFK)"),
28
expr("Fly(P2, JFK, SFO)"),
29
- expr("Unload (C2, P2, SFO)")]
+ expr("Unload (C2, P2, SFO)")]
30
31
- for action in solution:
+ for action in solution_1:
32
+ p.act(action)
33
+
34
+ assert p.goal_test()
35
36
37
+def test_air_cargo_2():
38
+ p = air_cargo()
39
+ assert p.goal_test() is False
40
+ solution_2 = [expr("Load(C2, P2, JFK)"),
41
+ expr("Fly(P2, JFK, SFO)"),
42
+ expr("Unload (C2, P2, SFO)"),
43
+ expr("Load(C1 , P1, SFO)"),
44
+ expr("Fly(P1, SFO, JFK)"),
45
+ expr("Unload(C1, P1, JFK)")]
46
47
+ for action in solution_2:
48
p.act(action)
49
50
assert p.goal_test()
0 commit comments