Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: clojure-emacs/orchard
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1872831bc69c6fa4bfb4d351b441b7a6ecfad30b
Choose a base ref
..
head repository: clojure-emacs/orchard
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 59e334058df91f3ccedbdcc06d697617545c181d
Choose a head ref
Showing with 6 additions and 5 deletions.
  1. +6 −5 test/orchard/java_test.clj
11 changes: 6 additions & 5 deletions test/orchard/java_test.clj
Original file line number Diff line number Diff line change
@@ -465,11 +465,12 @@
(is (= (resolve-symbol ns 'Thread.currentThread)
(resolve-symbol ns 'java.lang.Thread.currentThread)))))

(testing "class and constructor resolve to different lines"
(is (not= (:line (resolve-symbol ns 'java.lang.String))
(:line (resolve-symbol ns 'java.lang.String.))))
(is (not= (:line (resolve-symbol ns 'Thread))
(:line (resolve-symbol ns 'Thread.)))))
(when util/jdk-sources-present?
(testing "class and constructor resolve to different lines"
(is (not= (:line (resolve-symbol ns 'java.lang.String))
(:line (resolve-symbol ns 'java.lang.String.))))
(is (not= (:line (resolve-symbol ns 'Thread))
(:line (resolve-symbol ns 'Thread.))))))

(testing "of things that shouldn't resolve"
(is (nil? (resolve-symbol ns 'MissingUnqualifiedClass)))