test infra

This commit is contained in:
nora 2022-12-20 20:47:51 +01:00
parent 1398d3d211
commit 75108c8553
6 changed files with 145 additions and 36 deletions

24
tests/minimize.rs Normal file
View file

@ -0,0 +1,24 @@
mod helper;
use anyhow::Result;
use helper::run_test;
#[test]
fn hello_world_no_verify() -> Result<()> {
run_test(
r##"
fn main() {
println!("Hello, world!");
}
"##,
r##"
fn main() {
loop {}
}
"##,
|opts| {
opts.no_verify = true;
},
)
}