Skip to content

Commit

Permalink
Attempt to fix plan tree tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rpgoldman committed Oct 26, 2023
1 parent 065ad01 commit 52c2852
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion shop3/shop3.asd
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ shop3."
(search-tests . :search-tests) ; 9
(plan-num-limit-tests . :plan-num-limit-tests) ; 25
)
:num-checks 1086
:num-checks 1071 ; 1086
:depends-on ((:version "shop3" (:read-file-form "shop-version.lisp-expr"))
"shop3/openstacks"
"shop3/pddl-helpers"
Expand Down
8 changes: 3 additions & 5 deletions shop3/tests/plan-tree-tests.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -1213,14 +1213,12 @@


(test plan-tree ; 27 checks
(multiple-value-bind (plans ignore trees)
(find-plans 'log-ran-15-1 :plan-tree t :verbose 0)
(let ((trees
(nth-value 2 (find-plans 'log-ran-15-1 :plan-tree t :verbose 0))))
;; a good test would involve grabbing the *subtask-parents* and the
;; *operator-tasks* tables. Need to think about how to get those
;; saved. [2023/05/26:rpg]
(declare (ignore ignore))
(let* ((tree (canonically-order (first trees)))
(root (first tree)))
(let ((tree (canonically-order (first trees))))
(is-true (every #'complex-node-p tree))
;; expected-plan-tree is really a forest,
;; as is TREE.
Expand Down

0 comments on commit 52c2852

Please sign in to comment.