(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestNthFibonacci(t *testing.T) { |
| 46 | tests := getTests() |
| 47 | for _, test := range tests { |
| 48 | t.Run(test.name, func(t *testing.T) { |
| 49 | if got := dynamic.NthFibonacci(test.n); got != test.want { |
| 50 | t.Errorf("Return value = %v, want %v", got, test.want) |
| 51 | } |
| 52 | }) |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | func TestFormula(t *testing.T) { |
| 57 | tests := getTests() |
nothing calls this directly
no test coverage detected