Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tdewolff/canvas
/ TestToFromFixed
Function
TestToFromFixed
util_test.go:131–134 ·
view source on GitHub ↗
(t *testing.T)
Source
from the content-addressed store, hash-verified
129
}
130
131
func
TestToFromFixed(t *testing.T) {
132
test.T(t, fromP26_6(toP26_6(Point{3.0, 5.0})), Point{3.0, 5.0})
133
test.Float(t, fromI26_6(toI26_6(7.0)), 7.0)
134
}
135
136
func
TestPoint(t *testing.T) {
137
p := Point{3, 4}
Callers
nothing calls this directly
Calls
5
fromP26_6
Function · 0.85
toP26_6
Function · 0.85
fromI26_6
Function · 0.85
toI26_6
Function · 0.85
T
Method · 0.80
Tested by
no test coverage detected