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 and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug in QUnit with type errors in number arguments #2984

Closed
davidnich opened this Issue Sep 10, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@davidnich
Copy link
Contributor

davidnich commented Sep 10, 2018

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 davidnich added this to the 0.9 milestone Sep 10, 2018

@davidnich davidnich self-assigned this Sep 10, 2018

davidnich added a commit that referenced this issue Sep 10, 2018

refs #1796 added additional tests for private:internal members
refs #2984 fixed QUnit reporting for new tests

davidnich added a commit that referenced this issue Sep 10, 2018

sejvlond added a commit that referenced this issue Sep 19, 2018

Feature/1796 reflection (#2960)
* refs #1796 implemented reflection for Qore
  refs #2984 fixed QUnit reporting for new tests

@davidnich davidnich added the fixed label Oct 27, 2018

@davidnich davidnich closed this Oct 27, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment