From 6718b634844a7db28ef01374701d1f77c4fe1716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edvard=20Th=C3=B6rnros?= Date: Tue, 12 Jan 2021 20:04:02 +0100 Subject: Fib test and allowing skipping of comma --- tests/fib.tdy | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/fib.tdy (limited to 'tests') diff --git a/tests/fib.tdy b/tests/fib.tdy new file mode 100644 index 0000000..549d68a --- /dev/null +++ b/tests/fib.tdy @@ -0,0 +1,15 @@ +a := 0 +for j := 0, j < 100000, j = j + 1 { + a = 0 + b := 1 + + for i := 0, i < 90, i = i + 1 { + c := a + a = b + b = c + b + } +} + +// Expect 2880067194370816120 +print a + -- cgit v1.2.1