MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / TestEggDropping

Function TestEggDropping

dynamic/eggdropping_test.go:26–35  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

24}
25
26func 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}

Callers

nothing calls this directly

Calls 2

EggDroppingFunction · 0.92
getEggDroppingTestCasesFunction · 0.85

Tested by

no test coverage detected