add test
This commit is contained in:
parent
488cb67386
commit
ed282f452e
2 changed files with 5 additions and 0 deletions
|
|
@ -14,6 +14,7 @@ A preview of the next release can be installed from
|
||||||
- Bump `fs`
|
- Bump `fs`
|
||||||
- Bump `process`
|
- Bump `process`
|
||||||
- Bump `deps.clj`
|
- Bump `deps.clj`
|
||||||
|
- Add `java.io.LineNumberReader`
|
||||||
|
|
||||||
## 1.3.191 (2024-06-19)
|
## 1.3.191 (2024-06-19)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -61,3 +61,7 @@
|
||||||
(is (= :user/success
|
(is (= :user/success
|
||||||
(bb nil "(try (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"localhost\" 4444) (catch java.net.ConnectException e ::success))")))
|
(bb nil "(try (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"localhost\" 4444) (catch java.net.ConnectException e ::success))")))
|
||||||
(is (bb nil " (.startHandshake (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"clojure.org\" 443)) ::success")))
|
(is (bb nil " (.startHandshake (.createSocket (javax.net.ssl.SSLSocketFactory/getDefault) \"clojure.org\" 443)) ::success")))
|
||||||
|
|
||||||
|
(deftest jio-line-number-reader-test
|
||||||
|
(is (= 2 (bb nil "(def rdr (java.io.LineNumberReader. (java.io.StringReader. \"foo\nbar\")))
|
||||||
|
(binding [*in* rdr] (read-line) (read-line)) (.getLineNumber rdr)"))))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue