From 5321703287c491d7481a3095becdca6c639f304c Mon Sep 17 00:00:00 2001 From: "Paul R. Tagliamonte" Date: Sun, 17 Mar 2013 17:50:18 -0400 Subject: [PATCH] testing the double loop --- tests/native_tests/language.hy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/native_tests/language.hy b/tests/native_tests/language.hy index 04669fa..4213a2c 100644 --- a/tests/native_tests/language.hy +++ b/tests/native_tests/language.hy @@ -23,7 +23,12 @@ (def count 0) (for [x [1 2 3 4 5]] (def count (+ count x))) - (assert (= count 15))) + (assert (= count 15)) + (def count 0) + (for [x [1 2 3 4 5] + y [1 2 3 4 5]] + (def count (+ count x y))) + (assert (= count 140))) (defn test-in []