this breaks the power tests. did you mean to update them to the
current upstream ones, as in the attached patch? (it's not clear to me
whether the tests in toybox are forked because they're 0BSD in toybox
but not upstream?)

On Tue, Jun 11, 2019 at 7:09 PM Gavin Howard <[email protected]> wrote:
>
> I accidentally put the error check into the wrong if statement...
>
> Gavin Howard
> _______________________________________________
> Toybox mailing list
> [email protected]
> http://lists.landley.net/listinfo.cgi/toybox-landley.net
From 7833bf9491037b109990c536aa93cc31cd598ef0 Mon Sep 17 00:00:00 2001
From: Elliott Hughes <[email protected]>
Date: Thu, 20 Jun 2019 22:33:37 -0700
Subject: [PATCH] Update the bc power tests from upstream.

They hadn't been updated after the recent bug fix, so they were failing.

Corresponds to upstream changes in https://github.com/gavinhoward/bc
with SHAs 7622bcdb199e628c02a905dae4ef6230871f9752 and
098b2cbaabc3b99421bd9964cdd7ef4645177255.
---
 tests/files/bc/power.txt         | 24 +++++++++-----------
 tests/files/bc/power_results.txt | 38 ++++++++++++++++++++++++--------
 2 files changed, 40 insertions(+), 22 deletions(-)

diff --git a/tests/files/bc/power.txt b/tests/files/bc/power.txt
index 0a61671c..e4065fbf 100644
--- a/tests/files/bc/power.txt
+++ b/tests/files/bc/power.txt
@@ -11,7 +11,7 @@
 0.23523785962738592635777 ^ 1
 328956734869213746.89782398457234 ^ 1
 8937 ^ 98
-0.124876812394 ^ 96
+0.124876812394 ^ 2396
 93762.2836 ^ 13
 1 ^ -1
 2 ^ -1
@@ -20,26 +20,24 @@
 38579623756.897937568235 ^ -1
 1 ^ -32467
 2 ^ -53
-23897 ^ -3
+23897 ^ -213
 -1 ^ 1
 -1 ^ 2
 -2 ^ 1
 -2 ^ 2
--237 ^ 29
--3746 ^ 8
+-237 ^ 294
+-3746 ^ 28
 -0.3548 ^ 35
--4267.234 ^ 7
--326.3246 ^ 8
+-4267.234 ^ 37
+-326.3246 ^ 78
 -1 ^ -1
 -1 ^ -2
 -2 ^ -1
 -2 ^ -2
--237 ^ -93
+-237 ^ -293
 -784 ^ -23
 -86 ^ -7
--0.23424398 ^ -81
--178.234786 ^ -79
--1274.346 ^ -8
-0 ^ -251
--0.2959371298 ^ 27
-
+-0.23424398 ^ -781
+-178.234786 ^ -879
+-1274.346 ^ -768
+-0.2959371298 ^ 227
diff --git a/tests/files/bc/power_results.txt b/tests/files/bc/power_results.txt
index 6c4f4ec6..280347a9 100644
--- a/tests/files/bc/power_results.txt
+++ b/tests/files/bc/power_results.txt
@@ -26,17 +26,32 @@
 .00000000002592041867
 1.00000000000000000000
 .00000000000000011102
-.00000000000007327736
+0
 -1
 1
 -2
 4
--7373981340203217564025207502362461927230480148287479751287576522804\
-77
-38774140915674516674808545536
+14997322375665265051328725757939209353051902095893907150382724666290\
+49749481660976421019742616298227588464420182758442163654172400528243\
+00885441207762486233574213374503090372518590691583139696652847404883\
+08573912261119588874308960204159666762789603037188471170006223907416\
+60492840269152716750700089148882139254399347568222390231015487895905\
+73727080561379177721440905866857248917982113340543176658480139248897\
+54802503253413282808814063861470711399810899724515727713334909764746\
+27910290211411231279325882505708287941671508154740003122373284699097\
+78346501539634198926772266511968381368929692275950529960923432771985\
+12597189390708050983487158873301681237787429436264801751664042999180\
+3448659818912436089
+11478830555358864333472551120140548480416206583184496764727387456058\
+792742209537931243951391229607936
 -.00000000000000017759
--25764707167314625311472240.23895709280819039654
-128587429491381039942.88651883210401536158
+-2067373624686414405470850679965010694114490999957199847684803894306\
+56243666149296582304582679590231948238805965642713928910384741502707\
+.23224479257866798694
+11606078892843496082360561256965139908586179418605021706789617179085\
+85768049299693425729565480314913006780973928345684673490252494674985\
+0186164225375953066263609289359900615361965737717208159874390.293769\
+70206344604971
 -1.00000000000000000000
 1.00000000000000000000
 -.50000000000000000000
@@ -44,9 +59,14 @@
 0
 0
 -.00000000000002874159
--1139873046177080922024790150196533457011720664136966.15649615964858\
-379359
+-1945134149489344891879057554905782841936258356736314337975569799825\
+94091939572752348215929683891336730843553721422164737465108229034947\
+87333189564755763444242676978610321731298729194092653999616928308494\
+26419468484566422775668903315088810746121307679948574976162519479931\
+18935243698160094347216562490000767121041786977792546155155934655909\
+14123833869470494708767968978717730012864171105540029928688274136791\
+98175053824022144065005509214813689232148489884560100200475909009813\
+340098100705258138.98542904577525702068
 0
 0
 0
--.00000000000000527697
-- 
2.22.0.410.gd8fdbe21b5-goog

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to