summaryrefslogtreecommitdiff
path: root/exercises/error_handling
diff options
context:
space:
mode:
authorRoberto Vidal <vidal.roberto.j@gmail.com>2019-11-11 13:38:24 +0100
committerRoberto Vidal <vidal.roberto.j@gmail.com>2019-11-11 16:23:35 +0100
commit2cdd61294f0d9a53775ee24ad76435bec8a21e60 (patch)
tree36442292a4e3b0ae07072b0dfaf59a3bc799a397 /exercises/error_handling
parenta47a62172a5d4c479d242498b9b140b3111fb7c6 (diff)
feat: improve `watch` execution mode
The `watch` command now requires user action to move to the next exercise. BREAKING CHANGE: this changes the behavior of `watch`.
Diffstat (limited to 'exercises/error_handling')
-rw-r--r--exercises/error_handling/errors1.rs2
-rw-r--r--exercises/error_handling/errors2.rs2
-rw-r--r--exercises/error_handling/errors3.rs2
-rw-r--r--exercises/error_handling/errorsn.rs2
-rw-r--r--exercises/error_handling/option1.rs2
-rw-r--r--exercises/error_handling/result1.rs2
6 files changed, 12 insertions, 0 deletions
diff --git a/exercises/error_handling/errors1.rs b/exercises/error_handling/errors1.rs
index 8483234..a06f0ca 100644
--- a/exercises/error_handling/errors1.rs
+++ b/exercises/error_handling/errors1.rs
@@ -6,6 +6,8 @@
// this function to have.
// Scroll down for hints!!!
+// I AM NOT DONE
+
pub fn generate_nametag_text(name: String) -> Option<String> {
if name.len() > 0 {
Some(format!("Hi! My name is {}", name))
diff --git a/exercises/error_handling/errors2.rs b/exercises/error_handling/errors2.rs
index 8b81207..315528f 100644
--- a/exercises/error_handling/errors2.rs
+++ b/exercises/error_handling/errors2.rs
@@ -16,6 +16,8 @@
// There are at least two ways to implement this that are both correct-- but
// one is a lot shorter! Scroll down for hints to both ways.
+// I AM NOT DONE
+
use std::num::ParseIntError;
pub fn total_cost(item_quantity: &str) -> Result<i32, ParseIntError> {
diff --git a/exercises/error_handling/errors3.rs b/exercises/error_handling/errors3.rs
index 31800fc..35cd5c3 100644
--- a/exercises/error_handling/errors3.rs
+++ b/exercises/error_handling/errors3.rs
@@ -3,6 +3,8 @@
// `total_cost` function from the previous exercise. It's not working though!
// Why not? What should we do to fix it? Scroll for hints!
+// I AM NOT DONE
+
use std::num::ParseIntError;
fn main() {
diff --git a/exercises/error_handling/errorsn.rs b/exercises/error_handling/errorsn.rs
index c2b16ce..cc90801 100644
--- a/exercises/error_handling/errorsn.rs
+++ b/exercises/error_handling/errorsn.rs
@@ -15,6 +15,8 @@
//
// Scroll down for hints :)
+// I AM NOT DONE
+
use std::error;
use std::fmt;
use std::io;
diff --git a/exercises/error_handling/option1.rs b/exercises/error_handling/option1.rs
index c5a4a64..4e432a6 100644
--- a/exercises/error_handling/option1.rs
+++ b/exercises/error_handling/option1.rs
@@ -4,6 +4,8 @@
// on `None`. Handle this in a more graceful way than calling `unwrap`!
// Scroll down for hints :)
+// I AM NOT DONE
+
pub fn pop_too_much() -> bool {
let mut list = vec![3];
diff --git a/exercises/error_handling/result1.rs b/exercises/error_handling/result1.rs
index f9596e2..52972dc 100644
--- a/exercises/error_handling/result1.rs
+++ b/exercises/error_handling/result1.rs
@@ -1,6 +1,8 @@
// result1.rs
// Make this test pass! Scroll down for hints :)
+// I AM NOT DONE
+
#[derive(PartialEq, Debug)]
struct PositiveNonzeroInteger(u64);