MCPcopy Index your code
hub / github.com/expr-lang/expr / assertAlmostEqual

Function assertAlmostEqual

internal/difflib/difflib_test.go:12–16  ·  view source on GitHub ↗
(t *testing.T, a, b float64, places int)

Source from the content-addressed store, hash-verified

10)
11
12func assertAlmostEqual(t *testing.T, a, b float64, places int) {
13 if math.Abs(a-b) > math.Pow10(-places) {
14 t.Errorf("%.7f != %.7f", a, b)
15 }
16}
17
18func assertEqual(t *testing.T, a, b interface{}) {
19 if !reflect.DeepEqual(a, b) {

Callers 2

TestWithAsciiOneInsertFunction · 0.85
TestWithAsciiOnDeleteFunction · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…