-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update all test ns to reference clj-uuid.core
- Loading branch information
Showing
11 changed files
with
88 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
(ns clj-uuid.node-test | ||
(:require [clojure.test :refer :all] | ||
[clj-uuid.node :refer :all])) | ||
(:require [clj-uuid.node :as node] | ||
[clojure.test :refer :all])) | ||
|
||
|
||
(deftest check-node-id | ||
(testing "existance and type of node id...") | ||
(is (= (node-id) (node-id))) | ||
(is (coll? (node-id))) | ||
(is (= 6 (count (node-id)))) | ||
(is (every? number? (node-id))) | ||
(is (= 1 (bit-and 0x01 @+node-id+))) | ||
(is (instance? Long @+node-id+))) | ||
(is (= (node/node-id) (node/node-id))) | ||
(is (coll? (node/node-id))) | ||
(is (= 6 (count (node/node-id)))) | ||
(is (every? number? (node/node-id))) | ||
(is (= 1 (bit-and 0x01 @node/+node-id+))) | ||
(is (instance? Long @node/+node-id+))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
(ns clj-uuid.v4-test | ||
"Custom UUIDs tests" | ||
(:refer-clojure :exclude [uuid? max]) | ||
(:require [clojure.test :refer :all] | ||
[clj-uuid :refer :all :exclude [> < =]])) | ||
(:require [clj-uuid.core :as uuid] | ||
[clojure.test :refer :all])) | ||
|
||
(deftest check-v4-special-cases | ||
(testing "v4 special case correctness..." | ||
(is (= (v4 0 0) #uuid "00000000-0000-4000-8000-000000000000")) | ||
(is (= (v4 0 1) #uuid "00000000-0000-4000-8000-000000000001")) | ||
(is (= (v4 0 -1) #uuid "00000000-0000-4000-bfff-ffffffffffff")) | ||
(is (= (v4 -1 0) #uuid "ffffffff-ffff-4fff-8000-000000000000")) | ||
(is (= (v4 -1 -1) #uuid "ffffffff-ffff-4fff-bfff-ffffffffffff")))) | ||
(is (= (uuid/v4 0 0) #uuid "00000000-0000-4000-8000-000000000000")) | ||
(is (= (uuid/v4 0 1) #uuid "00000000-0000-4000-8000-000000000001")) | ||
(is (= (uuid/v4 0 -1) #uuid "00000000-0000-4000-bfff-ffffffffffff")) | ||
(is (= (uuid/v4 -1 0) #uuid "ffffffff-ffff-4fff-8000-000000000000")) | ||
(is (= (uuid/v4 -1 -1) #uuid "ffffffff-ffff-4fff-bfff-ffffffffffff")))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.