From 599097b69bef1e2b2bff0daee1fa692b82467d22 Mon Sep 17 00:00:00 2001 From: jbiset Date: Fri, 9 Aug 2024 17:42:16 -0300 Subject: [PATCH] Fixed format --- test/elixir_binaries_strings_and_charlists_test.exs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/elixir_binaries_strings_and_charlists_test.exs b/test/elixir_binaries_strings_and_charlists_test.exs index 2fe8fb4..d796bff 100644 --- a/test/elixir_binaries_strings_and_charlists_test.exs +++ b/test/elixir_binaries_strings_and_charlists_test.exs @@ -2,7 +2,6 @@ defmodule BinariesStringsCharlistsTest do use ExUnit.Case describe "Binaries, strings, and charlists" do - test "check if a string is a binary" do string = "hello" assert is_binary(string) @@ -48,6 +47,7 @@ defmodule BinariesStringsCharlistsTest do test "pattern matching on binaries" do assert <<0, 1, x>> = <<0, 1, 2>> assert x == 2 + assert_raise MatchError, fn -> <<0, 1, _x>> = <<0, 1, 2, 3>> end @@ -107,6 +107,5 @@ defmodule BinariesStringsCharlistsTest do # end assert "he" <> "llo" == "hello" end - end end