Add support for running test command as well as build

This commit is contained in:
Dave Rolsky
2023-03-17 10:43:28 -04:00
parent 5bd32448aa
commit 2f68f636e2
5 changed files with 77 additions and 12 deletions

View File

@@ -1,3 +1,11 @@
fn main() {
println!("Hello, world!");
}
#[cfg(test)]
mod test {
#[test]
fn test_something() {
assert_eq!(1, 1);
}
}