04bfb0
From 9dfe0a3438ae69872b71b98e4fb4f4bef084983d Mon Sep 17 00:00:00 2001
04bfb0
From: Tony Cook <tony@develop-help.com>
04bfb0
Date: Mon, 3 Jun 2019 14:34:17 +1000
04bfb0
Subject: [PATCH 2/2] (perl #134008) an alternative test
04bfb0
MIME-Version: 1.0
04bfb0
Content-Type: text/plain; charset=UTF-8
04bfb0
Content-Transfer-Encoding: 8bit
04bfb0
04bfb0
Signed-off-by: Petr Písař <ppisar@redhat.com>
04bfb0
---
04bfb0
 t/op/sprintf2.t | 1 +
04bfb0
 1 file changed, 1 insertion(+)
04bfb0
04bfb0
diff --git a/t/op/sprintf2.t b/t/op/sprintf2.t
04bfb0
index 569bd8053d..84259a4afd 100644
04bfb0
--- a/t/op/sprintf2.t
04bfb0
+++ b/t/op/sprintf2.t
04bfb0
@@ -840,6 +840,7 @@ SKIP: {
04bfb0
 
04bfb0
     # [rt.perl.org #134008]
04bfb0
     is(sprintf("%.*a", -99999, 1.03125), "0x1.08p+0", "[rt.perl.org #134008]");
04bfb0
+    is(sprintf("%.*a", -100000,0), "0x0p+0", "negative precision ignored by format_hexfp");
04bfb0
 
04bfb0
     # [rt.perl.org #128890]
04bfb0
     is(sprintf("%a", 0x1.18p+0), "0x1.18p+0");
04bfb0
-- 
04bfb0
2.20.1
04bfb0