From 110010d247cc787d31d9dfae56d758c92484300a Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 11 Apr 2016 15:42:20 +0200 Subject: Prolog: add a test case for depthBT/2 --- prolog/problems/trees/depthbt_2/common.py | 2 ++ 1 file changed, 2 insertions(+) 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): -- cgit v1.2.1