ohua-dev/ohua-jvm-integration

[Test Failure] ohua.tests/linker-test fails

Closed this issue · 1 comments

Fix the linker.

Lein output:

lein test ohua.linker-test

lein test :only ohua.linker-test/as-test

FAIL in (as-test) (linker_test.clj:35)
expected: (not (nil? (resolve (quote tests/accept))))
  actual: (not (not true))

lein test :only ohua.linker-test/as-test

FAIL in (as-test) (linker_test.clj:36)
expected: (= (resolve (quote tests/accept)) (resolve (quote ohua.tests/accept)))
  actual: (not (= nil "ohua.tests/accept"))

lein test :only ohua.linker-test/as-test

FAIL in (as-test) (linker_test.clj:39)
expected: (not (nil? (resolve (quote tests/write))))
  actual: (not (not true))

Ran 3 tests containing 10 assertions.
3 failures, 0 errors.
Tests failed.

Fixed by making ohua-unalias aware of namespace aliases