From f95086b14d103950925be3e65a557679c283450b Mon Sep 17 00:00:00 2001 From: Jay Hayes Date: Mon, 13 Jun 2016 09:29:14 -0500 Subject: [PATCH] Update delete_at example to also use non-numeric values --- lib/koans/07_lists.ex | 2 +- test/koans/lists_koans_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/koans/07_lists.ex b/lib/koans/07_lists.ex index 809df24..e76da01 100644 --- a/lib/koans/07_lists.ex +++ b/lib/koans/07_lists.ex @@ -24,7 +24,7 @@ defmodule Lists do end koan "Precision is also valued" do - assert List.delete_at([1, 2, 3], 1) == ___ + assert List.delete_at([:a, :b, :c], 2) == ___ end koan "Replication is also possible" do diff --git a/test/koans/lists_koans_test.exs b/test/koans/lists_koans_test.exs index d0dd563..b8fba4c 100644 --- a/test/koans/lists_koans_test.exs +++ b/test/koans/lists_koans_test.exs @@ -8,7 +8,7 @@ defmodule ListsTests do [1, 2, :a, "b"], [1,2], [:a, :c], - [1,3], + [:a, :b], ["life", "life", "life"], [1, 2, 3, 4, 5], [1, 4, 2, 3],