Skip to content

Commit 4a39114

Browse files
committed
Fix references to String.capitalize/1
1 parent 76a92b5 commit 4a39114

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/ex_unit/lib/ex_unit/case.ex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -418,13 +418,13 @@ defmodule ExUnit.Case do
418418
defmodule StringTest do
419419
use ExUnit.Case, async: true
420420
421-
describe "String.capitalize/1" do
422-
test "first grapheme is in uppercase" do
423-
assert String.capitalize("hello") == "Hello"
421+
describe "String.downcase/1" do
422+
test "with ascii characters" do
423+
assert String.downcase("HELLO") == "hello"
424424
end
425425
426-
test "converts remaining graphemes to lowercase" do
427-
assert String.capitalize("HELLO") == "Hello"
426+
test "with Unicode" do
427+
assert String.downcase("HÉLLÒ") == "héllò"
428428
end
429429
end
430430
end

0 commit comments

Comments
 (0)