1
0
Fork 0
forked from wry/wry

autocommit 2022-05-02 00:00:45 CEST

This commit is contained in:
Julian Orth 2022-05-02 00:00:45 +02:00
parent 04580c4aeb
commit 552c8a9950
8 changed files with 155 additions and 43 deletions

View file

@ -55,6 +55,7 @@ macro_rules! tassert_eq {
mod t0001_shm_formats;
mod t0002_window;
mod t0003_multi_window;
pub trait TestCase {
fn name(&self) -> &'static str;
@ -62,5 +63,18 @@ pub trait TestCase {
}
pub fn tests() -> Vec<&'static dyn TestCase> {
vec![&t0001_shm_formats::Test, &t0002_window::Test]
macro_rules! tests {
($($module:ident,)*) => {
vec![
$(
&$module::Test,
)*
]
}
}
tests! {
t0001_shm_formats,
t0002_window,
t0003_multi_window,
}
}