MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / equalFloat

Function equalFloat

IceFireDB-PubSub/test/test_test.go:30–34  ·  view source on GitHub ↗
(tb testing.TB, exp, act float64)

Source from the content-addressed store, hash-verified

28}
29
30func equalFloat(tb testing.TB, exp, act float64) {
31 if exp-act > 0.00000001 || exp-act < -0.00000001 {
32 tb.Errorf("expected: %#v got: %#v", exp, act)
33 }
34}
35
36// equals fails the test if exp is not equal to act.
37func equals(tb testing.TB, exp, act interface{}) {

Callers 1

TestHashIncrbyfloatFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected