From 3aa6151729c19030ee947495f5d3d254d839f7e0 Mon Sep 17 00:00:00 2001 From: Philipp Oppermann Date: Sat, 20 Apr 2019 18:30:34 +0200 Subject: [PATCH] Add a trivial_assertion test --- src/main.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.rs b/src/main.rs index d63dab29..f35b2fa4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -32,3 +32,10 @@ fn panic(info: &PanicInfo) -> ! { println!("{}", info); loop {} } + +#[test_case] +fn trivial_assertion() { + print!("trivial assertion... "); + assert_eq!(1, 1); + println!("[ok]"); +}