Skip to content

Commit

Permalink
Fix reference to function arity in test names
Browse files Browse the repository at this point in the history
  • Loading branch information
g-andrade committed Oct 28, 2023
1 parent 3fdc87c commit 92290e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sqids_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ defmodule SqidsTest do
assert_raise ArgumentError, "Alphabet is not an utf8 string: <<128>>", fn -> new_sqids(at, alphabet: input) end
end

test "#{access_type}: new/2: blocklist is not enumerable" do
test "#{access_type}: new/1: blocklist is not enumerable" do
at = unquote(access_type)

input = {"word"}
Expand All @@ -519,7 +519,7 @@ defmodule SqidsTest do
assert_raise ArgumentError, "Blocklist is not enumerable: \"555\"", fn -> new_sqids(at, blocklist: input) end
end

test "#{access_type}: new/2: some words in blocklist are not UTF-8 strings " do
test "#{access_type}: new/1: some words in blocklist are not UTF-8 strings " do
at = unquote(access_type)

input = ["aaaa", -44.3, "ok", 5, "go", <<128>>, <<129>>, "done"]
Expand Down

0 comments on commit 92290e2

Please sign in to comment.