Uploaded image for project: 'ClojureScript'
  1. CLJS-2986

stest/check test doesn't work in self-hosted tests

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects versions: None
    • Fix versions: None
    • Labels:
    • Patch:
      Code and Test

      Description

      The test in CLJS-2986-test.patch doesn't pass with script/test-self-parity.

      The test:

      (defn fn-2986 [x] true)
      (s/fdef fn-2986 :args (s/cat :x int?) :ret true?)
      
      (deftest test-2986
        (let [check-res
              (stest/check `fn-2986 {:clojure.test.check/opts {:num-tests 1}})]
          (is (seq check-res))
          (is (every? (fn [res]
                        (= 1 (-> res
                                 :clojure.test.check/ret
                                 :num-tests)))
                      check-res))))
      

      It fails with:

      Testing cljs.spec.test-test
      
      FAIL in (test-2986) (at cljs/test.js:429:14)
      expected: (seq check-res)
        actual: (not (seq []))
      

      I cannot reproduce this result with Planck.

        Attachments

          Activity

            People

            • Assignee:
              borkdude Michiel Borkent
              Reporter:
              borkdude Michiel Borkent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: