LEFT | RIGHT |
(Both sides are equal) |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 package big | 5 package big |
6 | 6 |
7 import "testing" | 7 import "testing" |
8 | 8 |
9 func TestCmpNN(t *testing.T) { | 9 func TestCmpNN(t *testing.T) { |
10 // TODO(gri) write this test - all other tests depends on it | 10 // TODO(gri) write this test - all other tests depends on it |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 if len(test.m) > 0 { | 272 if len(test.m) > 0 { |
273 m, _, _ = scanN(nil, test.m, 0) | 273 m, _, _ = scanN(nil, test.m, 0) |
274 } | 274 } |
275 | 275 |
276 z := expNNN(nil, x, y, m) | 276 z := expNNN(nil, x, y, m) |
277 if cmpNN(z, out) != 0 { | 277 if cmpNN(z, out) != 0 { |
278 t.Errorf("#%d got %v want %v", i, z, out) | 278 t.Errorf("#%d got %v want %v", i, z, out) |
279 } | 279 } |
280 } | 280 } |
281 } | 281 } |
LEFT | RIGHT |