#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)
Change History (4)
Changed 15 years ago by
Changed 15 years ago by
comment:1 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
" in the offending locations, so we'll mark this closed but keep an eye on it. |