diff options
| author | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-12 20:04:02 +0100 |
|---|---|---|
| committer | Edvard Thörnros <edvard.thornros@gmail.com> | 2021-01-12 20:04:02 +0100 |
| commit | 6718b634844a7db28ef01374701d1f77c4fe1716 (patch) | |
| tree | b00c3bc1850568b28efccf990eff9cb692562ad3 /tests | |
| parent | 3a1e2316e467c85340f353b47d6fe92a02dc112a (diff) | |
| download | sylt-6718b634844a7db28ef01374701d1f77c4fe1716.tar.gz | |
Fib test and allowing skipping of comma
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/fib.tdy | 15 |
1 files changed, 15 insertions, 0 deletions
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 + |
