"cargo new" and write a failing test

wip
Daniel Barlow 2023-10-31 22:10:48 +00:00
commit a4a80f450a
4 changed files with 31 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

7
Cargo.lock generated Normal file
View File

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "mars-rover-fe"
version = "0.1.0"

8
Cargo.toml Normal file
View File

@ -0,0 +1,8 @@
[package]
name = "mars-rover-fe"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]

15
src/main.rs Normal file
View File

@ -0,0 +1,15 @@
fn main() {
println!("Hello, world!");
}
#[cfg(test)]
mod tests {
#[test]
fn rover_run() {
assert_eq!(1,1);
}
#[test]
fn failure_run() {
assert_eq!(1,0);
}
}