MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / TestBitwiseMin

Function TestBitwiseMin

math/min/min_test.go:29–39  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

27}
28
29func TestBitwiseMin(t *testing.T) {
30 tests := getTestCases()
31 for _, test := range tests {
32 t.Run(test.name, func(t *testing.T) {
33 result := Bitwise(test.base, 999, test.numbers...)
34 if result != test.min {
35 t.Errorf("Wrong result! Expected:%v, returned:%v ", test.min, result)
36 }
37 })
38 }
39}
40
41func TestMin(t *testing.T) {
42 for _, test := range getTestCases() {

Callers

nothing calls this directly

Calls 2

getTestCasesFunction · 0.85
BitwiseFunction · 0.70

Tested by

no test coverage detected