| Ticket UUID: | 3076576 | |||
| Title: | Wrong number of arguments in test isprime-2.0 of numtheory | |||
| Type: | Bug | Version: | None | |
| Submitter: | arjenmarkus | Created on: | 2010-09-27 14:19:43 | |
| Subsystem: | math | Assigned To: | lars_h | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2010-09-27 22:44:07 | |
| Resolution: | Fixed | Closed By: | lars_h | |
| Closed on: | 2010-09-27 15:44:07 | |||
| Description: |
Test isprime-2.0 uses a mock-up Miller-Rabin test procedure, but the number of arguments is 3, instead of 4.
Here is the report:
==== modules/math/numtheory.test isprime-2.0 FAILED =========
==== Contents of test case:
::math::numtheory::Miller--Rabin 127 -randommr 500
---- Result was:
---- Return code should have been one of: 0 2
---- errorInfo: wrong # args: should be "::math::numtheory::Miller--Rabin n s d a"
while executing
"::math::numtheory::Miller--Rabin 127 -randommr 500"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- Result should have been:
==== modules/math/numtheory.test isprime-2.0 ====
| |||
| User Comments: |
lars_h added on 2010-09-27 22:44:07:
Not wrong number of arguments, but wrong command called; it should have been math::numtheory::isprime. Also, 127 turns out to be too small to test what was meant to be tested. Fixed in CVS. | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki