add list test and make amount of fibonacci numbers to test for
All checks were successful
/ test (push) Successful in 43s
All checks were successful
/ test (push) Successful in 43s
This commit is contained in:
parent
80f4364f7e
commit
dac2cbc20d
2 changed files with 4 additions and 3 deletions
|
|
@ -25,3 +25,6 @@ while x <= 100 {
|
|||
|
||||
assertEq([1, 2] + [3], [1, 2, 3])
|
||||
assertEq(["Eny", "meanie"] + ["minie", "moe"], ["Eny", "meanie", "minie", "moe"])
|
||||
|
||||
assertEq("abcd".split(""), ["a", "b", "c", "d"])
|
||||
assertEq("the, first, time".split(", "), ["the", "first", "time"])
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
|
||||
fibonacci_numbers := [
|
||||
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377,
|
||||
610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657,
|
||||
46368, 75025, 121393, 196418, 317811, 514229, 832040
|
||||
0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377
|
||||
]
|
||||
|
||||
func fib(n: number) number {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue