shithub: mc

Download patch

ref: 677eeb4ac8e7d1e7577e509da0ab481b10f327a9
parent: 8f2b7470799a4851a5f73e8566b18823c7fe72df
author: Ori Bernstein <[email protected]>
date: Sun Sep 14 12:12:29 EDT 2014

Fix test data and spurious bigint prints.

--- a/test/data/stdbigint-expected
+++ b/test/data/stdbigint-expected
@@ -1,4 +1,4 @@
 517347321949036993306
 1234567812346789666677778888 / 123456781234678966667777 == 10000
-5192296858534810493479828944327220 / 1208925819597106013545236 == 4294967296
+1208908684563961789813300 / 263951815549716 == 4580035496
 5192296858534810493479828944327220 / 75557863709417659441940 == 68719476751
--- a/test/stdbigint.myr
+++ b/test/stdbigint.myr
@@ -47,7 +47,6 @@
 	match std.bigparse("0xffff_1234_1234_1234_1234")
 	| `std.Some val: a = val
 	n = std.bigbfmt(buf[:], a, 0)
-	std.put("a = %s \n", buf[:n])
 	| `std.None: std.die("Failed to parse a\n")
 	;;
 	match std.bigparse("0xf010_1234_2314")
@@ -68,7 +67,6 @@
 	match std.bigparse("5192296858534810493479828944327220")
 	| `std.Some val: a = val
 	n = std.bigbfmt(buf[:], a, 0)
-	std.put("a = %s \n", buf[:n])
 	| `std.None: std.die("Failed to parse a\n")
 	;;
 	match std.bigparse("75557863709417659441940")