MCPcopy
hub / github.com/shopspring/decimal / TestDecimal_Abs2

Function TestDecimal_Abs2

decimal_test.go:2513–2521  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2511}
2512
2513func TestDecimal_Abs2(t *testing.T) {
2514 a := New(-1234, -4)
2515 b := New(1234, -4)
2516
2517 c := b.Abs()
2518 if c.Cmp(a) == 0 {
2519 t.Errorf("error")
2520 }
2521}
2522
2523func TestDecimal_Equalities(t *testing.T) {
2524 a := New(1234, 3)

Callers

nothing calls this directly

Calls 3

NewFunction · 0.85
AbsMethod · 0.80
CmpMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…