Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#106 closed defect (fixed)

strange "||" behavior in JUM tests and jum.debug()

Reported by: alex Owned by: alex
Priority: high Milestone:
Component: General Version: 0.1
Keywords: Cc:
Blocked By: Blocking:

Description

attached test runner file outputs:

obelisk:/tmp alex$ rhino tmp.js js: "/Users/alex/projects/dojo/trunk/tests/prologue.js", line 6: Couldn't open file "../src/bootstrap1.js". js: "/Users/alex/projects/dojo/trunk/tests/prologue.js", line 8: Couldn't open file "../src/hostenv_rhino.js". js: "/Users/alex/projects/dojo/trunk/tests/prologue.js", line 10: Couldn't open file "../src/bootstrap2.js". (jsunit_wrap.js) got 1 test function names INFO: no setTimeout, not checking async completion (jsunit_wrap.js) no setTimeout, not checking async completion TEST: There are 1 test groups... TEST: group 'foo' has 1 tests to run... TEST: test 'bar' ... 4 DEBUG: true TEST: FAILED test 'foo.bar': assertEquals(foo) failed: expected |(new Number(4))| (typeof=number), but got |(new Boolean(true))| (typeof=boolean) TEST: ======================= TEST: Total tests: 1 TEST: Failed: 1 TEST: Error: 0 TEST: Skipped: 0 TEST: Passed: 0

When i should output "3" instead of "true" and the test should pass

Attachments (2)

.2 (0 bytes) - added by alex 14 years ago.
tmp.js (369 bytes) - added by alex 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by alex

Attachment: .2 added

Changed 14 years ago by alex

Attachment: tmp.js added

comment:1 Changed 14 years ago by alex

Resolution: fixed
Status: newclosed
this appears to be related to a core language bug in Rhino, which I don't think is fixable for 0.2, and not something we should block on. I've updated the source files and the tests not to use "
" in the offending locations, so we'll mark this closed but keep an eye on it.

comment:2 Changed 13 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.