(t *testing.T)
| 54 | } |
| 55 | |
| 56 | func TestFormula(t *testing.T) { |
| 57 | tests := getTests() |
| 58 | for _, test := range tests { |
| 59 | t.Run(test.name, func(t *testing.T) { |
| 60 | if got := Formula(test.n); test.n <= 10 && got != test.want { |
| 61 | t.Errorf("Return value = %v, want %v", got, test.want) |
| 62 | } |
| 63 | }) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func TestRecursive(t *testing.T) { |
| 68 | tests := getTests() |