Simplified the parser slightly, and now generating a subset of ADL.
This commit is contained in:
parent
ad252a0d78
commit
3dc84787b5
5 changed files with 186 additions and 31 deletions
15
test/squirrel_parse/to_adl_test.clj
Normal file
15
test/squirrel_parse/to_adl_test.clj
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
(ns squirrel-parse.to-adl-test
|
||||
(:require [clojure.test :refer :all]
|
||||
[squirrel-parse.to-adl :refer :all]))
|
||||
|
||||
(deftest test-get-column-datatype
|
||||
(testing "Testing whether right datatype is returned for a valid column"
|
||||
(let [column-spec '(:COLUMN-SPEC
|
||||
(:NAME "longitude")
|
||||
(:DATATYPE (:DT-REAL "real"))
|
||||
(:COLUMN-CONSTRAINTS)
|
||||
(:OPT-COMMA))
|
||||
actual (get-column-datatype column-spec)
|
||||
expected :real]
|
||||
|
||||
(is (= expected actual)))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue