about summary refs log tree commit diff stats
path: root/test/core
diff options
context:
space:
mode:
Diffstat (limited to 'test/core')
-rw-r--r--test/core/test_types.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/core/test_types.py b/test/core/test_types.py
index bb1d5da1..09de1f71 100644
--- a/test/core/test_types.py
+++ b/test/core/test_types.py
@@ -154,6 +154,9 @@ assert memstr3.val == memstr.val # But the python value is the same
 
 
 # Array tests
+# Construction methods
+assert Array(MyStruct) == Array(MyStruct.get_type())
+assert Array(MyStruct, 10) == Array(MyStruct.get_type(), 10)
 # Allocate buffer manually, since memarray is unsized
 alloc_addr = my_heap.vm_alloc(jitter.vm, 0x100)
 memarray = Array(Num("I")).lval(jitter.vm, alloc_addr)