From faad72d2b73563b6aef4007c811987f18016c0d9 Mon Sep 17 00:00:00 2001 From: Rok Fajfar Date: Fri, 13 Oct 2023 08:52:43 +0200 Subject: [PATCH] Improve the secure treasure chest exercise instructions (#368) The instructions previously didn't say what the errors should be. You found that out after running the tests. --- exercises/concept/secure-treasure-chest/.docs/instructions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/concept/secure-treasure-chest/.docs/instructions.md b/exercises/concept/secure-treasure-chest/.docs/instructions.md index ef114be9d..cb9eeafb4 100644 --- a/exercises/concept/secure-treasure-chest/.docs/instructions.md +++ b/exercises/concept/secure-treasure-chest/.docs/instructions.md @@ -22,7 +22,7 @@ This function takes two arguments: The function returns a `TreasureChest` containing the password and the value. -If the password is shorter than 8 characters then the function should return an error. +If the password is shorter than 8 characters then the function should return an error saying `Password must be at least 8 characters long`. ## 3. Define `open` function. @@ -31,4 +31,4 @@ This function takes two arguments: - A `TreasureChest`. - A password `String`. -If the password matches the password in the `TreasureChest` then the function should return the treasure, otherwise it should return an error. +If the password matches the password in the `TreasureChest` then the function should return the treasure, otherwise it should return an error saying `Incorrect password`.