mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-14 16:35:01 +01:00
24 lines
332 B
Rust
24 lines
332 B
Rust
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;
|
|
},
|
|
)
|
|
}
|