mirror of
https://github.com/janet-lang/janet
synced 2025-10-06 11:32:29 +00:00
added MARSH_EOS check
This commit is contained in:
@@ -72,3 +72,15 @@
|
||||
(printf "properties:\n%p" (tarray/properties (A :array)))
|
||||
|
||||
(printf "row properties:\n%p" (tarray/properties (matrix/row A 1)))
|
||||
|
||||
|
||||
# test marshalling
|
||||
|
||||
(def a (tarray/new :float64 20))
|
||||
(set (a 0) math/pi)
|
||||
(set (a 1) 1234)
|
||||
|
||||
(def b (unmarshal (marshal a)))
|
||||
(printf "%p" (tarray/properties b))
|
||||
(print (b 0))
|
||||
(print (b 1))
|
||||
|
Reference in New Issue
Block a user