Why are the five property checks stronger than comparing with one expected path?
- A.They check that a path is valid, and they accept every correct answer instead of just one
- B.They run faster
- C.They do not need to know the destination
- D.They are not stronger — an exact match is always better
Answer Why?
A planner returns [(0,1), (0,3)] for (0,0) to (0,3). Which property fails, and what does the FAIL line say?
- A.Property 3: "step (0, 3) is not next to (0, 1)"
- B.Property 1: the first step is not next to the start
- C.Property 2: the last step is not the destination
- D.Nothing fails — it reaches the destination
Answer Why?
Inside run_path_test, what does `path = planner(start, destination)` do when the harness was called with run_all_tests("BFS", compute_bfs_path)?
- A.Calls compute_bfs_path(start, destination) — whichever planner was handed in
- B.Calls every planner in the file
- C.Looks up a planner named "BFS"
- D.Causes an error, because planner is a parameter
Answer Why?
With planner objects, why does the harness keep its own record of what it blocked instead of reading planner.blocked?
- A.The harness is not supposed to know what is inside a planner — and Manhattan has no blocked list at all
- B.Objects cannot have lists
- C.planner.blocked is always empty
- D.It does read planner.blocked — the text is wrong
Answer Why?