mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-28 06:01:54 +08:00

Unlike our C++ tests, our Rust tests fail as soon as an assertion fails. Whether this is desired is debatable; it seems fine for most cases and is easier to implement. This means that Rust tests usually don't need to print anything besides what assert!/assert_eq! already provide. One exception is the history merge test. Let's add a simple err!() macro to support this. Unlike the C++ err() it does not yet print colors. Currently all of our macros live in common.rs, to keep the import graph simple.