From fbf1e139f02a88556358639268b2da45f8df32e9 Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Fri, 23 Dec 2016 08:45:48 -0600 Subject: [PATCH] Properly unwrap the koan body the keyword list argument It's a bummer that this isn't tested. I spent just a couple minutes trying to come up with where to put the test, but gave up for time's sake. See https://github.com/elixirkoans/elixir-koans/issues/151 for more information and screenshots. --- lib/koans.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/koans.ex b/lib/koans.ex index ad87c22..dc03601 100644 --- a/lib/koans.ex +++ b/lib/koans.ex @@ -3,7 +3,7 @@ defmodule Koans do Regex.match?(~r/([A-Z]|\.\.\.).+/, name) end - defmacro koan(name, body) do + defmacro koan(name, do: body) do if not valid_name(name) do raise "Name does not start with a capital letter: #{name}" end