wxMaxima-developers / wxmaxima

A gui for the computer algebra system Maxima built with wxWidgets
https://wxMaxima-developers.github.io/wxmaxima/
Other
461 stars 96 forks source link

wxmaxima 23.02.1 and xmaxima report different results from testsuite #1760

Closed beew closed 1 year ago

beew commented 1 year ago

Just upgraded wxmaxima to 23.02.1.

do run_testsuite() in wxmaxima 23.02.1 and got these in the beginning of the outputs.

Testsuite run for SBCL 2.3.1.58-9c154de5d:
Running tests in rtest_rules: 
********************** Problem 5 (line 50) ***************
Input:
(defrule(rx,xx,foo_xx),defrule(r1,1,foo_1),defrule(rs,"string",foo_string),defrule(r17,17.0,foo_17),defrule(rtrue,true,foo_true),defrule(rfalse,false,foo_false),defmatch(px,xx),defmatch(p1,1),defmatch(ps,"string"),defmatch(pfloat,17.0),defmatch(ptrue,true),defmatch(pfalse,false),0)
Result:
The value
  TEXT-STRING
is not of type
  LIST
when binding SB-IMPL::X
error\-catch
This differed from the expected result:
0
********************** Problem 8 (line 59) ***************
Input:
[px(xx),p1(1),ps("string"),pfloat(17.0),ptrue(true),pfalse(false)]
Result:
[px(xx),p1(1),ps("string"),pfloat(17.0),ptrue(true),pfalse(false)]
This differed from the expected result:
[true,true,true,true,true,true]
********************** Problem 9 (line 62) ***************
Input:
[px(yy),p1(2),ps("string2"),pfloat(29.0),ptrue(truly),pfalse(falsely)]
Result:
[px(yy),p1(2),ps("string2"),pfloat(29.0),ptrue(truly),pfalse(falsely)]
This differed from the expected result:
[false,false,false,false,false,false]
********************** Problem 10 (line 80) ***************
Input:
(matchdeclare(aa,atom,ii,integerp,ss,stringp,ff,floatnump,bb,booleanp),booleanp(e):=atom(e) and (e=true or e=false),defrule(ra,aa,[aa]),defrule(ri,ii,ii/10.0),defrule(rs,ss,concat(ss,"1729")),defrule(rf,ff,floor(ff)),defrule(rb,bb,if bb then 1 else 0),defmatch(pa,aa),defmatch(pi,ii),defmatch(ps,ss),defmatch(pf,ff),defmatch(pb,bb),0)
Result:
The value
  TEXT-STRING
is not of type
  LIST
when binding SB-IMPL::X
error\-catch
This differed from the expected result:
0
********************** Problem 13 (line 89) ***************
Input:
[pa(foobar),pi(17290),ps("foobar"),pf(1729.0),pb(false)]
Result:
[pa(foobar),pi(17290),ps("foobar"),pf(1729.0),pb(false)]
This differed from the expected result:
[[aa=foobar],[ii=17290],[ss="foobar"],[ff=1729.0],[bb=false]]
********************** Problem 14 (line 92) ***************
Input:
[pa(foo+bar),pi(17290.0),ps(foobar),pf(1729),pb(foo(bar))]
Result:
[pa(foo+bar),pi(17290.0),ps(foobar),pf(1729),pb(foo(bar))]
This differed from the expected result:
[false,false,false,false,false]
********************** Problem 103 (line 587) ***************
Input:
(kill(aa,bb,foo,bar),matchdeclare(aa,integerp,bb,floatnump,foo,lambda([ee],member(ee,'([sin,cos])))),defmatch(bar,bb*foo(aa)),0)
Result:
** error while printing error message **
defmatch: failed to compile match for pattern ~M
error\-catch
This differed from the expected result:
0
********************** Problem 104 (line 591) ***************
Input:
(bar(12.345*sin(54321)),if %%=false then false else sort(%%))
Result:
** error while printing error message **
sort: first argument must be a list; found: ~M
error\-catch
This differed from the expected result:
[aa=54321,bb=12.345,foo=sin]
********************** Problem 105 (line 599) ***************
Input:
(matchdeclare(aa,floatnump,bb,integerp),defmatch(baztimes,aa*foo(bb)),defmatch(bazplus,aa+foo(bb)),0)
Result:
** error while printing error message **
defmatch: failed to compile match for pattern ~M
error\-catch
This differed from the expected result:
0
********************** Problem 106 (line 603) ***************
Input:
(baztimes(12.345*sin(54321)),if %%=false then false else sort(%%))
Result:
** error while printing error message **
sort: first argument must be a list; found: ~M
error\-catch
This differed from the expected result:
[aa=12.345,bb=54321,foo=sin]
********************** Problem 107 (line 607) ***************
Input:
(bazplus(12.345+sin(54321)),if %%=false then false else sort(%%))
Result:
** error while printing error message **
sort: first argument must be a list; found: ~M
error\-catch
This differed from the expected result:
[aa=12.345,bb=54321,foo=sin]
116/127 tests passed

However xmaxima and wxmaxima 23.02.0 report no error

Testsuite run for SBCL 2.3.1.58-9c154de5d:
Running tests in rtest_rules: 127/127 tests passed

This is the same copy of maxima 5.45.1 which has not changed.

OS is Ubuntu22.04. Both maxima and wxmaxima compiled from source.

gunterkoenigsmann commented 1 year ago

Resolved with 3e7dc676040724e3f9d11bc3ca9dce8a43136ba7.