Permalink
Browse files

Function parse-string test that breaks.

  • Loading branch information...
1 parent 1c1cb32 commit 86cc86ce2299968580a32769605fbedcf5ef619f @davidjameshumphreys davidjameshumphreys committed Mar 30, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 modules/incanter-io/test/incanter/io_tests.clj
View
9 modules/incanter-io/test/incanter/io_tests.clj
@@ -86,4 +86,11 @@
(is (= [:speed :dist] (:column-names cars-dataset)) (str "Reading column names for " name " failed"))
(is (= 50 (count (:rows cars-dataset)))) (str "Reading rows for " name " failed"))) ;; end of read-dataset-validation tests
-
+(def parse-string (ns-resolve 'incanter.io 'parse-string))
+(deftest parse-string-validation
+
+ (testing "Parsing string values into numbers"
+ (is (= 1234 (parse-string "1234")))
+ (is (instance? java.lang.Long (parse-string "5678")))
+ (is (instance? java.lang.Long (parse-string "1330418008377")))
+ ))

0 comments on commit 86cc86c

Please sign in to comment.