From ae034a78cab333421d4050f6b0d0964e6bf708ee Mon Sep 17 00:00:00 2001
From: Reinhold Kainhofer <reinhold@kainhofer.com>
Date: Wed, 8 Dec 2021 15:34:28 +0100
Subject: [PATCH] vmGlgExample.generate: Also add the absTolerance parameter
 with value 0.01 by default

---
 R/showVmGlgExamples.R | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/R/showVmGlgExamples.R b/R/showVmGlgExamples.R
index a52bc21..628cc53 100644
--- a/R/showVmGlgExamples.R
+++ b/R/showVmGlgExamples.R
@@ -364,7 +364,7 @@ vmGlgExample.generateTest = function(contract, prf = 10, t = 10, t_prf = 12, ...
         names(cmpvals),
         sprintf("%.2f", cmpvals),
         sep = " = ", collapse = ", \n\t\t");
-    code = paste0(code, "\t\t", check.str, "\n\t);\n");
+    code = paste0(code, "\t\t", check.str, ",\n\tabsTolerance = 0.01\n\t);\n");
     code = paste0(code, "})\n");
     cat(code);
 }
-- 
GitLab