From ba66fc5d12ee82fbbc44b32cc4799aaf6900226b Mon Sep 17 00:00:00 2001 From: Newters <101497832+Newters@users.noreply.github.com> Date: Wed, 25 Sep 2024 22:44:51 +1000 Subject: [PATCH] Changed secret.add example values to avoid further confusion (#1524) * changed secret.add values to avoid further confusion * Apply suggestions from code review --------- Co-authored-by: Angelika Cathor --- exercises/concept/secrets/.docs/instructions.md | 4 ++-- exercises/concept/secrets/test/secrets_test.exs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/exercises/concept/secrets/.docs/instructions.md b/exercises/concept/secrets/.docs/instructions.md index b7ccb6872a..c7dd13d79c 100644 --- a/exercises/concept/secrets/.docs/instructions.md +++ b/exercises/concept/secrets/.docs/instructions.md @@ -11,9 +11,9 @@ All functions should expect integer arguments. Integers are also suitable for pe Implement `Secrets.secret_add/1`. It should return a function which takes one argument and adds to it the argument passed in to `secret_add`. ```elixir -adder = Secrets.secret_add(2) +adder = Secrets.secret_add(3) adder.(2) -# => 4 +# => 5 ``` ## 2. Create a subtractor diff --git a/exercises/concept/secrets/test/secrets_test.exs b/exercises/concept/secrets/test/secrets_test.exs index 04b51fcb20..d7160742f8 100644 --- a/exercises/concept/secrets/test/secrets_test.exs +++ b/exercises/concept/secrets/test/secrets_test.exs @@ -3,9 +3,9 @@ defmodule SecretsTest do describe "secret_add" do @tag task_id: 1 - test "add 3" do - add = Secrets.secret_add(3) - assert add.(3) === 6 + test "add 4" do + add = Secrets.secret_add(4) + assert add.(3) === 7 end @tag task_id: 1