Hi Lutz,
Well we are in the process of testing, and indeed I was wondering if there was such a thing as a testsuite.
Here the results of the 'div' and 'add':
newLISP v.8.5.8 on Tru64Unix, execute 'newlisp -h' for more info.
> (sub 10 -1)
-4294967285
> (add 10 1)
11
>
So it seems to be something with negative numbers. A '-1' should be 0xFFFFFFFF right? Probably on Tru64 this is bigger.
If I run the 'qa_dot' program, there is a crash after the 'append':
pamela_vaspadm> newlisp qa_dot
Testing built-in functions ...
! != $ % &
* + - / <
<< <= = > >=
>> NaN? ^ abs acos
add address amb and append
Segmentation fault (core dumped)
To avoid this, I have commented out the following functions:
-(test-array-list) which causes this crash.
-(test-dotimes , aList) which blocked newLisp
-(test-pmt) which gave a FLOAT error
If I run again, this is the result:
pamela_vaspadm> newlisp qa_dot
Testing built-in functions ...
! != $ % &
* + - / <
<< <= = > >=
>> NaN? ^ abs acos
add address amb and append
apply args array array-list array?
asin assoc atan atan2 atom?
base64-dec base64-enc begin beta betai
binomial case catch ceil change-dir
char chop close command-line cond
cons constant context context? copy-file
cos count cpymem crit-chi2 crit-z
current-line date date-value debug dec
def-new define define-macro delete delete-file
device difference directory directory? div
do-until do-while dolist dotimes dotree
dump dup empty? encrypt ends-with
env error-event error-number error-text eval
eval-string exec exit exp expand
explode factor fft file-info file?
filter find first flat float
float? floor flt for fork
format fv gammai gammaln get-char
get-float get-int get-integer get-string get-url
global if ifft import inc
index int integer integer? intersect
invert irr join lambda? last
legal? length let letn list
list? load log lookup lower-case
macro? main-args make-dir map match
max member min mod mul
multiply name net-accept net-close net-connect
net-error net-listen net-local net-lookup net-peek
net-peer net-receive net-receive-from net-receive-udp net-select
net-send net-send-to net-send-udp net-service net-sessions
new normal not now nper
npv nth nth-set open or
pack parse pipe pack parse pipe pmt pop
post-url pow pretty-print primitive? print
println prob-chi2 prob-z process println prob-chi2 prob-z process push
put-url pv quote quote? rand
random read-buffer read-char read-file read-key
read-line ref regex remove-dir rename-file
replace replace-assoc reset rest reverse
rotate save search seed seek
select semaphore sequence series set
set! set-locale set-nth setq share
signal silent sin sleep --- sleep duration: 1000 ---
slice
sort source sqrt starts-with string
string? sub swap sym symbol
symbol? symbols sys-error sys-info tan
throw throw-error time time-of-day timer
trace trace-highlight transpose trim unique
unless unpack until upper-case wait-pid
while write-buffer write-char write-file write-line
xml-error xml-parse xml-type-tags | ~
Testing contexts as objects and scoping rules ...
TESTING FINISHED WITH ERRORS:
>>>> / failed nil
>>>> < failed nil
>>>> <= failed nil
>>>> > failed nil
>>>> NaN? failed nil
>>>> abs failed nil
>>>> array-list failed nil
>>>> array? failed nil
>>>> binomial failed nil
>>>> dotimes failed nil
>>>> exec failed nil
>>>> fv failed nil
>>>> int failed nil
>>>> integer failed nil
>>>> net-receive-udp failed nil
>>>> net-send-udp failed nil
>>>> npv failed nil
>>>> pmt failed nil
>>>> semaphore failed nil
>>>> share failed nil
newLISP v.8.5.8 on Tru64Unix, execute 'newlisp -h' for more info.
> ring...
Most of these failed tests use negative numbers or floats.