bug in QUnit with type errors in number arguments (original) (raw)
ex:
Unexpected exception: RUNTIME-OVERLOAD-ERROR at /Users/david/src/qore/git/qore/qlib/QUnit.qm:980
-----
>> System exception: /Users/david/src/qore/git/qore/qlib/QUnit.qm:980: RUNTIME-OVERLOAD-ERROR: no variant matching '<value>::toString(integer) can be found; the following variants were tested:
>> <value>::toString()
>> call stack:
>> Test::printUnexpectedData() called at /Users/david/src/qore/git/qore/qlib/QUnit.qm:1329 (user function)
>> Test::assertEq() called at ./reflection.qtest:500 (user function)
>> ReflectionTest::reflectionTests() called at /Users/david/src/qore/git/qore/qlib/QUnit.qm:450 (user function)
>> call_function_args() called at /Users/david/src/qore/git/qore/qlib/QUnit.qm:450 (builtin function)
-----
The error is at QUnit.qm:978
:
978: switch (act.typeCode()) {
979: case NT_NUMBER:
980: expected = sprintf("(%s) %N (%s)", exp.type(), exp, exp.toString(NF_Raw));
981: break;