oxedyne/fe2o3/fe2o3_datime/tests/main.rs
1.2 KiB, 10 runs
created by r1870400018:6417, 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
| 1 | //! [Written with AI entirely](https://need2know.ai/entirely-ai/code)\ |
| 2 | //! Anthropic Claude |
| 3 | |
| 4 | mod calendar; |
| 5 | mod clock; |
| 6 | mod format_locale; |
| 7 | mod iana_integration; |
| 8 | mod integration_demo; |
| 9 | mod new_features; |
| 10 | mod rfc9557_demo; |
| 11 | mod time; |
| 12 | |
| 13 | use oxedyne_fe2o3_core::prelude::*; |
| 14 | |
| 15 | #[test] |
| 16 | fn main() -> Outcome<()> { |
| 17 | |
| 18 | // Separate the tests out to a run_tests function so that we can funnel any outcome, be it an |
| 19 | // error or ok, back into this function before closing out with a single call to log_finish_wait! to |
| 20 | // allow logger thread completion. Otherwise, we may not see all the logger output before the |
| 21 | // main thread finishes. |
| 22 | |
| 23 | log_set_level!("trace"); |
| 24 | |
| 25 | let outcome = run_tests(); |
| 26 | |
| 27 | log_finish_wait!(); |
| 28 | |
| 29 | outcome |
| 30 | } |
| 31 | |
| 32 | fn run_tests() -> Outcome<()> { |
| 33 | |
| 34 | let filter = "all"; |
| 35 | res!(calendar::test_calendar(filter)); |
| 36 | res!(clock::test_clock(filter)); |
| 37 | res!(format_locale::test_format_locale(filter)); |
| 38 | res!(iana_integration::test_iana_integration(filter)); |
| 39 | res!(integration_demo::test_integration_demo(filter)); |
| 40 | res!(new_features::test_new_features(filter)); |
| 41 | res!(rfc9557_demo::test_rfc9557_integration(filter)); |
| 42 | res!(time::test_time(filter)); |
| 43 | |
| 44 | Ok(()) |
| 45 | } |