test(elixir): fix CRLF problems

This commit is contained in:
kahsez 2025-08-15 15:16:14 +02:00
parent be71b01523
commit 67b8e4b0db

View File

@ -4,8 +4,9 @@ defmodule GildedRoseTest do
import ExUnit.CaptureIO import ExUnit.CaptureIO
test "Approval test 30 days" do test "Approval test 30 days" do
expected = File.read!("test/ApprovalTest.ThirtyDays.verified.txt") expected = File.read!("test/ApprovalTest.ThirtyDays.verified.txt") |> String.replace("\r\n", "\n")
assert capture_io(fn -> GildedRose.TextTestFixture.run(30) end) == expected result = capture_io(fn -> GildedRose.TextTestFixture.run(30) end) |> String.replace("\r\n", "\n")
assert result == expected
end end
test "begin the journey of refactoring" do test "begin the journey of refactoring" do