bug in QUnit with type errors in number arguments · Issue #2984 · qorelanguage/qore (original) (raw)

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

davidnich opened this issue

Sep 10, 2018

· 0 comments

Assignees

@davidnich

Comments

@davidnich

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;

davidnich added a commit that referenced this issue

Sep 10, 2018

@davidnich

refs #2984 fixed QUnit reporting for new tests

davidnich added a commit that referenced this issue

Sep 10, 2018

@davidnich

sejvlond pushed a commit that referenced this issue

Sep 19, 2018

@davidnich @sejvlond

1 participant

@davidnich