[#630] Fix stream example
This commit is contained in:
parent
d8da037af9
commit
2d77fd6254
2 changed files with 5 additions and 2 deletions
|
|
@ -297,8 +297,8 @@
|
||||||
java.nio.file.FileSystem
|
java.nio.file.FileSystem
|
||||||
(instance? java.nio.file.PathMatcher v)
|
(instance? java.nio.file.PathMatcher v)
|
||||||
java.nio.file.PathMatcher
|
java.nio.file.PathMatcher
|
||||||
(instance? java.util.stream.Stream v)
|
(instance? java.util.stream.BaseStream v)
|
||||||
java.util.stream.Stream)))))
|
java.util.stream.BaseStream)))))
|
||||||
|
|
||||||
(def class-map (gen-class-map))
|
(def class-map (gen-class-map))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -552,6 +552,9 @@
|
||||||
(test-utils/bb {:in "x" :err sw} "--repl"))
|
(test-utils/bb {:in "x" :err sw} "--repl"))
|
||||||
(is (str/includes? (str sw) "Could not resolve symbol: x [at <repl>:1:1]")))))
|
(is (str/includes? (str sw) "Could not resolve symbol: x [at <repl>:1:1]")))))
|
||||||
|
|
||||||
|
(deftest java-stream-test
|
||||||
|
(is (every? number? (bb nil "(take 2 (iterator-seq (.iterator (.doubles (java.util.Random.)))))"))))
|
||||||
|
|
||||||
;;;; Scratch
|
;;;; Scratch
|
||||||
|
|
||||||
(comment
|
(comment
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue