Allow to read and write more dtypes
This commit is contained in:
parent
9b2e9b184f
commit
2610d9e8b2
2 changed files with 29 additions and 12 deletions
12
tests.bqn
12
tests.bqn
|
@ -5,3 +5,15 @@ a←3‿4‿5•rand.Range 0
|
|||
b←LoadNpy"testbqn.npy"
|
||||
! a≡○≢b
|
||||
! a≡b
|
||||
|
||||
floatArr←2‿3•rand.Range 0
|
||||
intArr←50-˜2‿3•rand.Range 100
|
||||
uintArr←2‿3•rand.Range 100
|
||||
|
||||
"test_float.npy"SaveNpy floatArr
|
||||
"test_int.npy"SaveNpy intArr
|
||||
"test_uint.npy"SaveNpy uintArr
|
||||
|
||||
floatArr≡LoadNpy"test_float.npy"
|
||||
intArr≡LoadNpy"test_int.npy"
|
||||
uintArr≡LoadNpy"test_uint.npy"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue