2022-08-01 06:07:00 -05:00
|
|
|
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
;;
|
2022-11-02 12:11:50 -05:00
|
|
|
;; Copyright (c) KALEIDOS INC
|
2022-08-01 06:07:00 -05:00
|
|
|
|
2022-11-08 04:40:19 -05:00
|
|
|
(ns common-tests.uuid-test
|
2022-08-01 06:07:00 -05:00
|
|
|
(:require
|
2023-03-18 04:32:26 -05:00
|
|
|
[app.common.schema :as sm]
|
|
|
|
[app.common.schema.generators :as sg]
|
|
|
|
[clojure.test :as t]))
|
2022-08-01 06:07:00 -05:00
|
|
|
|
2023-03-18 04:32:26 -05:00
|
|
|
(t/deftest non-repeating-uuid-next-1-schema
|
|
|
|
(sg/check!
|
|
|
|
(sg/for [uuid1 (sg/generator ::sm/uuid)
|
|
|
|
uuid2 (sg/generator ::sm/uuid)]
|
|
|
|
(t/is (not= uuid1 uuid2)))
|
|
|
|
{:num 100}))
|