forked from LauJensen/clojureql
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pagination
- Loading branch information
Showing
7 changed files
with
232 additions
and
42 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(ns clojureql.test.internal | ||
(:refer-clojure | ||
:exclude [compile take drop sort distinct conj! disj! case]) | ||
(:use clojure.test | ||
clojureql.internal)) | ||
|
||
(deftest test-to-tablename | ||
(are [tname expected] | ||
(is (= expected (to-tablename tname))) | ||
nil nil | ||
:user "user" | ||
"user" "user" | ||
{:user :developer} "user developer" | ||
{"user" "developer"} "user developer")) | ||
|
||
(deftest test-to-tablealias | ||
(are [tname expected] | ||
(is (= expected (to-tablealias tname))) | ||
nil nil | ||
:user "user" | ||
"user" "user" | ||
{:user :developer} "developer" | ||
{"user" "developer"} "developer")) |