()
| 6 | ) |
| 7 | |
| 8 | func getTests() []struct { |
| 9 | name string |
| 10 | n uint |
| 11 | want uint |
| 12 | } { |
| 13 | tests := []struct { |
| 14 | name string |
| 15 | n uint |
| 16 | want uint |
| 17 | }{ |
| 18 | {"Fibonacci 0-th number == 0", 0, 0}, |
| 19 | {"Fibonacci 1-th number == 1", 1, 1}, |
| 20 | {"Fibonacci 2-th number == 1", 2, 1}, |
| 21 | {"Fibonacci 3-th number == 2", 3, 2}, |
| 22 | {"Fibonacci 4-th number == 3", 4, 3}, |
| 23 | {"Fibonacci 5-th number == 5", 5, 5}, |
| 24 | {"Fibonacci 6-th number == 8", 6, 8}, |
| 25 | {"Fibonacci 7-th number == 13", 7, 13}, |
| 26 | {"Fibonacci 8-th number == 21", 8, 21}, |
| 27 | {"Fibonacci 9-th number == 34", 9, 34}, |
| 28 | {"Fibonacci 10-th number == 55", 10, 55}, |
| 29 | {"Fibonacci 90-th number == 2880067194370816120", 90, 2880067194370816120}, |
| 30 | } |
| 31 | return tests |
| 32 | } |
| 33 | |
| 34 | func TestMatrix(t *testing.T) { |
| 35 | tests := getTests() |
no outgoing calls
no test coverage detected