Skip to content
Snippets Groups Projects
Commit 08740c1b authored by Cam Saül's avatar Cam Saül
Browse files

Add some tests :wrench:

parent e9af745f
No related branches found
No related tags found
No related merge requests found
......@@ -16,3 +16,23 @@
(expect true (driver/driver-supports? (TestDriver.) :a))
(expect false (driver/driver-supports? (TestDriver.) :b))
;; values->base-type
(expect
:type/Text
(driver/values->base-type ["A" "B" "C"]))
;; should ignore nils
(expect
:type/Text
(driver/values->base-type [nil nil "C"]))
;; should pick base-type of most common class
(expect
:type/Text
(driver/values->base-type ["A" 100 "C"]))
;; should fall back to :type/* if no better type is found
(expect
:type/*
(driver/values->base-type [(Object.)]))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment