Skip to content
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
Closed

bug in QUnit with type errors in number arguments #2984

davidnich opened this issue Sep 10, 2018 · 0 comments

Comments

@davidnich
Copy link
Contributor

@davidnich 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 #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
* refs #1796 implemented reflection for Qore
  refs #2984 fixed QUnit reporting for new tests
@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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant