summaryrefslogtreecommitdiff
path: root/prolog/problems/lists/count_3
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-11-30 15:09:07 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2015-11-30 15:09:07 +0100
commitbb49b7add4e63f8cb10130ed860107e5eda95018 (patch)
tree3c811ed7076284db2ebdcee3d2ffcfb0b5f06411 /prolog/problems/lists/count_3
parent8d7d287e088068c661a241f88cf70412b5121a58 (diff)
Reformat Prolog test cases with lists
Diffstat (limited to 'prolog/problems/lists/count_3')
-rw-r--r--prolog/problems/lists/count_3/common.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/prolog/problems/lists/count_3/common.py b/prolog/problems/lists/count_3/common.py
index 423bb1e..c257d66 100644
--- a/prolog/problems/lists/count_3/common.py
+++ b/prolog/problems/lists/count_3/common.py
@@ -22,11 +22,11 @@ count(X, [Y|T], NT) :-
test_cases = [
('count(a, [], X)',
[{'X': '0'}]),
- ('count(r, [a,r,b,c,r], X)',
+ ('count(r, [a, r, b, c, r], X)',
[{'X': '2'}]),
- ('count(l, [l,l,l,1,2,3], X)',
+ ('count(l, [l, l, l, 1, 2, 3], X)',
[{'X': '3'}]),
- ('count(z, [a,b,c,z,z], X)',
+ ('count(z, [a, b, c, z, z], X)',
[{'X': '2'}]),
]