(t *testing.T)
| 24 | } |
| 25 | |
| 26 | func TestEggDropping(t *testing.T) { |
| 27 | t.Run("Egg Dropping test cases", func(t *testing.T) { |
| 28 | for _, tc := range getEggDroppingTestCases() { |
| 29 | actual := dynamic.EggDropping(tc.eggs, tc.floors) |
| 30 | if actual != tc.expected { |
| 31 | t.Errorf("EggDropping(%d, %d) = %d; expected %d", tc.eggs, tc.floors, actual, tc.expected) |
| 32 | } |
| 33 | } |
| 34 | }) |
| 35 | } |
nothing calls this directly
no test coverage detected