Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed secret.add example values to avoid further confusion #1524

Merged
merged 2 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exercises/concept/secrets/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions exercises/concept/secrets/test/secrets_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading