Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Go
/ equal
Function
equal
search/ternary_test.go:10–12 ·
view source on GitHub ↗
(a, b float64)
Source
from the content-addressed store, hash-verified
8
const
EPS = 1e-6
9
10
func
equal(a, b float64) bool {
11
return
math.Abs(a-b) <= EPS
12
}
13
14
func
TestTernaryMax(t *testing.T) {
15
Callers
2
TestTernaryMax
Function · 0.85
TestTernaryMin
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected