Oregami
Repositories/oxedyne/fe2o3

oxedyne/fe2o3/fe2o3_jdat/tests/main.rs

915 bytes, 9 runs

created by r1870400018:501, which is this file's identity for as long as the history lasts, whatever it is later renamed to

download · who wrote it · its history

1mod byte;
2mod daticle;
3mod golden;
4mod map;
5mod string;
6
7use oxedyne_fe2o3_core::prelude::*;
8
9
10#[test]
11fn main() -> Outcome<()> {
12
13 // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an
14 // error or ok, back into this function before closing out with a single call to log_finish_wait! to
15 // allow logger thread completion. Otherwise, we may not see all the logger output before the
16 // main thread finishes.
17
18 log_set_level!("test");
19
20 let outcome = run_tests();
21
22 log_finish_wait!();
23
24 outcome
25}
26
27fn run_tests() -> Outcome<()> {
28
29 let filter = "all";
30 //let filter = "Integrated multiline 010";
31
32 res!(daticle::test_daticle_func(filter));
33 res!(map::test_map_func(filter));
34 res!(string::test_string_encdec_func(filter));
35 res!(byte::test_binary_encdec_func(filter));
36 res!(golden::test_golden_func(filter));
37
38 Ok(())
39}