summaryrefslogtreecommitdiff
path: root/prolog/problems/trees
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-11 15:42:20 +0200
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-04-11 15:42:20 +0200
commit110010d247cc787d31d9dfae56d758c92484300a (patch)
tree244c014ebe6e5c013f0804f8d7b8f522eca0e770 /prolog/problems/trees
parentbf87cb80bd98ac2e79b3899db8502d249b2809b4 (diff)
Prolog: add a test case for depthBT/2
Diffstat (limited to 'prolog/problems/trees')
-rw-r--r--prolog/problems/trees/depthbt_2/common.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/prolog/problems/trees/depthbt_2/common.py b/prolog/problems/trees/depthbt_2/common.py
index ce04a08..0e2810d 100644
--- a/prolog/problems/trees/depthbt_2/common.py
+++ b/prolog/problems/trees/depthbt_2/common.py
@@ -31,6 +31,8 @@ test_cases = [
[{}]),
('depthBT(b(b(b(b(nil,a,nil),b,nil),c,nil),d,nil), X), X == 4',
[{}]),
+ ('depthBT(b(nil,d,b(nil,c,b(nil,e,b(nil,a,nil)))), X), X == 4',
+ [{}]),
]
def test(code, aux_code):