Talk:CRC-32: Difference between revisions

→‎REXX: added results from test runs. -- ~~~~
(→‎REXX: please test this)
(→‎REXX: added results from test runs. -- ~~~~)
Line 96:
Signal back</lang>
--[[User:Walterpachl|Walterpachl]] ([[User talk:Walterpachl|talk]]) 05:53, 18 August 2013 (UTC)
 
-----
 
I don't quite understand the reasoning/logic behind the test program:
: if the program gets a SYNTAX error ''anywhere'', it counts as OK.
: if the program successfully does the two '''D2C'''s, it counts as an error in one case, but not the other.
: if the program successfully does the 2nd '''D2C''', it is counted as an error.
: no check is made to verify that the value of '''D''' matches the value of the 1st argument (999999999).
A &nbsp; &nbsp; '''parse version x; say x''' &nbsp; &nbsp; was added after the 1st statement.
<br>A &nbsp; &nbsp; '''say 'digits=' digits()''' &nbsp; &nbsp; would be a nice addition.
<br><br>But in any case &nbsp; (all were executed under a Windows/XP DOS window (cmd.exe):<br><br>
'''output''' from Regina:
<pre>
REXX-Regina_3.7(MT) 5.00 14 Oct 2012
1 Tests ok
1 Tests failed
</pre>
'''output''' from Personal REXX:
<pre>
REXX/Personal 4.00 21 Mar 1992
2 Tests ok
0 Tests failed
</pre>
'''output''' from R4:
<pre>
REXX-r4 4.00 27 Jan 2013
2 Tests ok
0 Tests failed
</pre>
'''output''' from ROO:
<pre>
REXX-roo 4.00 28 Jan 2007
Error 40 : Incorrect call to routine (OFF)
Information: D2C argument 1 is invalid. Whole number is required.
Argument value: 1.00000000E+9
 
Error occurred in statement# 9
Statement source: d1= d2c(d+1)
Statement context: D:\crud0.rex, procedure: badwalter
</pre>
Clearly, different REXXes which are different are behaving differently. -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 08:26, 18 August 2013 (UTC)
 
-----