Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Function parse-string test that breaks.

  • Loading branch information...
commit 86cc86ce2299968580a32769605fbedcf5ef619f 1 parent 1c1cb32
David James Humphreys authored March 30, 2012
9  modules/incanter-io/test/incanter/io_tests.clj
@@ -86,4 +86,11 @@
86 86
     (is (= [:speed :dist] (:column-names cars-dataset)) (str "Reading column names for " name " failed"))
87 87
     (is (= 50 (count (:rows cars-dataset)))) (str "Reading rows for " name " failed"))) ;; end of read-dataset-validation tests
88 88
 
89  
-
  89
+(def parse-string (ns-resolve 'incanter.io 'parse-string))
  90
+(deftest parse-string-validation
  91
+  
  92
+  (testing "Parsing string values into numbers"
  93
+    (is (= 1234 (parse-string "1234")))
  94
+    (is (instance? java.lang.Long (parse-string "5678")))
  95
+    (is (instance? java.lang.Long (parse-string "1330418008377")))
  96
+    ))

0 notes on commit 86cc86c

Please sign in to comment.
Something went wrong with that request. Please try again.