Add bytechannel test
This commit is contained in:
parent
b257dc343e
commit
1fb3699561
3 changed files with 8 additions and 2 deletions
|
|
@ -372,8 +372,12 @@
|
|||
java.nio.MappedByteBuffer
|
||||
java.nio.file.OpenOption
|
||||
java.nio.file.StandardOpenOption
|
||||
java.nio.channels.ByteChannel
|
||||
java.nio.channels.Channels
|
||||
java.nio.channels.FileChannel
|
||||
java.nio.channels.FileChannel$MapMode
|
||||
java.nio.channels.ReadableByteChannel
|
||||
java.nio.channels.WritableByteChannel
|
||||
java.nio.channels.ServerSocketChannel
|
||||
java.nio.channels.SocketChannel
|
||||
java.nio.charset.Charset
|
||||
|
|
|
|||
|
|
@ -19,5 +19,4 @@
|
|||
(.toPath))
|
||||
(into-array OpenOption [StandardOpenOption/READ]))]
|
||||
(instance? ByteChannel ch)))
|
||||
(println "Success")
|
||||
:success)
|
||||
(println :success))
|
||||
|
|
|
|||
|
|
@ -23,6 +23,9 @@
|
|||
(deftest domain-sockets-test
|
||||
(is (= :success (bb nil (slurp "test-resources/domain_sockets.bb")))))
|
||||
|
||||
(deftest byte-channels-test
|
||||
(is (= :success (bb nil (slurp "test-resources/bytechannel_and_related_classes.bb")))))
|
||||
|
||||
(deftest map-entry-create-test
|
||||
(is (true? (bb nil "(= (first {1 2})
|
||||
(clojure.lang.MapEntry. 1 2)
|
||||
|
|
|
|||
Loading…
Reference in a new issue