[master] 1824a3482 Discontinue use of "scientific notation" in test-cases.

Poul-Henning Kamp phk at FreeBSD.org
Wed May 19 07:41:06 UTC 2021


commit 1824a3482fd356d0f639cfc0c8ee72167cfc2dd8
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed May 19 07:02:01 2021 +0000

    Discontinue use of "scientific notation" in test-cases.

diff --git a/bin/varnishtest/tests/r03308.vtc b/bin/varnishtest/tests/r03308.vtc
index 6c60821c9..144dcf8e9 100644
--- a/bin/varnishtest/tests/r03308.vtc
+++ b/bin/varnishtest/tests/r03308.vtc
@@ -11,7 +11,7 @@ varnish v1 -vcl+backend {
 	import std;
 
 	sub vcl_deliver {
-		set resp.http.ts = std.real2time(std.real("1e+22", 0), now);
+		set resp.http.ts = std.real2time(std.real("10000000000000000000000", 0), now);
 	}
 } -start
 
diff --git a/bin/varnishtest/tests/r03463.vtc b/bin/varnishtest/tests/r03463.vtc
index 9d0818e7f..3d14ea9d0 100644
--- a/bin/varnishtest/tests/r03463.vtc
+++ b/bin/varnishtest/tests/r03463.vtc
@@ -8,7 +8,7 @@ varnish v1 -vcl {
 			std.log("float1: 123.456");
 			std.log("float2: 123.");
 			std.log("float3: .456");
-			std.log("float4: 12.3e1");
+			std.log("float4: 123");
 			std.log("float5: e1");
 		}
 		return (synth(200));


More information about the varnish-commit mailing list