commit a4a80f450ae62b079b79be1487bb6c59cb59f872
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 31 Oct 2023 22:10:48 +0000
"cargo new" and write a failing test
Diffstat:
4 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/.gitignore b/.gitignore
@@ -0,0 +1 @@
+/target
diff --git a/Cargo.lock b/Cargo.lock
@@ -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"
diff --git a/Cargo.toml b/Cargo.toml
@@ -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]
diff --git a/src/main.rs b/src/main.rs
@@ -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);
+ }
+}