Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      create the above tests in a project and run lein test or lein immutant test.

      Show
      create the above tests in a project and run lein test or lein immutant test.

      Description

      the first test below works, the seconds blocks, it happens with lein test, lein immutant test and in the repl.

      (deftest cache-test
      (testing "swap! works with existent key"
      (let [c (cache/create "asd")]
      (cache/put c "foo" 15)
      (cache/swap! c "foo" #(or % 1))
      (is (= (get c "foo") 15))))

      (testing "swap! works with inexistent key"
      (let [c (cache/create "asd1")]
      (cache/put c "foo" 15)
      (cache/swap! c "bar" #(or % 1))
      (is (= (get c "bar") 1))))
      )

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jcrossley Jim Crossley
                Reporter:
                marianoguerra Mariano Guerra
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: