core.logic

deftest test-root-1 in namespace clojure.core.logic.tests missing 'is'?

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

The two = expressions in deftest test-root-1 should probably be wrapped in (is ...):

(deftest test-root-1 []
  (let [x (lvar 'x)
        s (ext-no-check empty-s x 1)]
    (= (root-var s x) x)
    (= (root-val s x) 1)))

Found while testing next version of Eastwood linter on a bunch of projects. It warned that the first (= ...) expression's return value was unused.

Activity

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: