Add tests
This commit is contained in:
parent
e1fe03d236
commit
b868903a81
2 changed files with 32 additions and 9 deletions
12
gentest.py
Normal file
12
gentest.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
import numpy as np
|
||||
|
||||
def main():
|
||||
for endianness in "<>":
|
||||
for typ in "fiu":
|
||||
for size in "48":
|
||||
dtype=endianness + typ + size
|
||||
arr = np.zeros((2,3,4), dtype=dtype)
|
||||
np.save(f"test{dtype}.npy", arr)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
Loading…
Add table
Add a link
Reference in a new issue