finish factoring tests (#17)

* atoms in one test unit

* factor out pointers test

* factor structs into separate test unit

* factor out arrays, flags

* finally, separate into strings and ints
This commit is contained in:
Pat Hickey
2020-02-22 01:17:27 -08:00
committed by GitHub
parent 3be9d48bc6
commit b7cd003b93
19 changed files with 1148 additions and 1062 deletions

17
tests/arrays.witx Normal file
View File

@@ -0,0 +1,17 @@
(use "errno.witx")
(use "excuse.witx")
(typename $const_excuse_array (array (@witx const_pointer $excuse)))
(typename $excuse_array (array (@witx pointer $excuse)))
(module $arrays
(@interface func (export "reduce_excuses")
(param $excuses $const_excuse_array)
(result $error $errno)
(result $reduced $excuse)
)
(@interface func (export "populate_excuses")
(param $excuses $excuse_array)
(result $error $errno)
)
)