- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestIssue3521 (0.09 sec)
-
src/math/big/rat_test.go
// 5) numerator and denominator are the same q = NewRat(1, 1) x = new(Rat) n := NewInt(7) x.SetFrac(n, n) if x.Cmp(q) != 0 { t.Errorf("5) got %s want %s", x, q) } } func TestIssue3521(t *testing.T) { a := new(Int) b := new(Int) a.SetString("64375784358435883458348587", 0) b.SetString("4789759874531", 0) // 0) a raw zero value has 1 as denominator zero := new(Rat)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 07 00:15:59 UTC 2022 - 18.9K bytes - Viewed (0)