From b8d7abe4ea11512f5ba38d0f9d4b65779ba8cb23 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Tue, 24 Jan 2017 08:08:01 -0600 Subject: [PATCH] Change definition of anonymous greet That prevents the confusion of mixing up the anonymous and named implementations fixed by 55f592. --- lib/koans/13_functions.ex | 2 +- test/koans/functions_koans_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/koans/13_functions.ex b/lib/koans/13_functions.ex index de61d47..ba04144 100644 --- a/lib/koans/13_functions.ex +++ b/lib/koans/13_functions.ex @@ -68,7 +68,7 @@ defmodule Functions do end koan "Prefix a string with & to build a simple anonymous greet function" do - greet = &"Hello, #{&1}!" + greet = &"Hi, #{&1}!" assert greet.("Foo") == ___ end diff --git a/test/koans/functions_koans_test.exs b/test/koans/functions_koans_test.exs index ed96de4..088d3df 100644 --- a/test/koans/functions_koans_test.exs +++ b/test/koans/functions_koans_test.exs @@ -13,7 +13,7 @@ defmodule FunctionsTests do {:multiple, ["The number was zero", "The number was 5"]}, 6, 6, - "Hello, Foo!", + "Hi, Foo!", ["foo", "foo", "foo"], 100, 1000,