Skip to content

Instantly share code, notes, and snippets.

@trptcolin
Created June 23, 2014 03:47
Show Gist options
  • Save trptcolin/7e1ece5179581085730f to your computer and use it in GitHub Desktop.
Save trptcolin/7e1ece5179581085730f to your computer and use it in GitHub Desktop.
speclj test output
(ns clj16.core-spec
(:require [speclj.core :refer :all]
[clj16.core :refer :all]))
(describe "tests"
(it "compares strings"
(should= "space" "spice"))
(it "compares maps 1"
(should== {:sheep 1} {:cheese 1 :sheep 1}))
(it "compares maps 2"
(should== {:sheep 1 :cheese 1} {:sheep 1}))
(it "compares maps 3"
(should== {:sheep 1 :cheese 1} {:sheep 1 :cheese 5}))
(it "compares sets 1"
(should== #{:a :b} #{:a :b :c}))
(it "compares sets 2"
(should== #{:a :b :c} #{:a :b}))
(it "compares lists 1"
(should== '(1 2 3) '(1 2 3 4)))
(it "compares lists 2"
(should== '(1 2 4) '(1 2 3 4)))
(it "compares lists 3"
(should== '(9 8 7) [1 2 3])))
FFFFFFFFF
Failures:
1) tests compares strings
Expected: "space"
got: "spice" (using =)
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:7
2) tests compares maps 1
Expected contents: {:sheep 1}
got: {:sheep 1, :cheese 1}
missing: nil
extra: {:cheese 1}
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:10
3) tests compares maps 2
Expected contents: {:sheep 1, :cheese 1}
got: {:sheep 1}
missing: {:cheese 1}
extra: nil
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:13
4) tests compares maps 3
Expected contents: {:sheep 1, :cheese 1}
got: {:sheep 1, :cheese 5}
missing: {:cheese 1}
extra: {:cheese 5}
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:16
5) tests compares sets 1
Expected contents: #{:a :b}
got: #{:a :c :b}
missing: []
extra: [:c]
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:19
6) tests compares sets 2
Expected contents: #{:a :c :b}
got: #{:a :b}
missing: [:c]
extra: []
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:22
7) tests compares lists 1
Expected contents: (1 2 3)
got: (1 2 3 4)
missing: []
extra: [4]
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:25
8) tests compares lists 2
Expected contents: (1 2 4)
got: (1 2 3 4)
missing: []
extra: [3]
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:28
9) tests compares lists 3
Expected contents: (9 8 7)
got: [1 2 3]
missing: [9 8 7]
extra: [1 2 3]
/Users/colin/Practice/clj16/spec/clj16/core_spec.clj:31
Finished in 0.02704 seconds
9 examples, 9 failures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment