diff --git a/test/xml_builder_test.exs b/test/xml_builder_test.exs
index a7bd8d8..955b2a6 100644
--- a/test/xml_builder_test.exs
+++ b/test/xml_builder_test.exs
@@ -162,8 +162,10 @@ defmodule XmlBuilderTest do
test "element with attributes" do
warning =
capture_io(:stderr, fn ->
- assert doc(:person, %{occupation: "Developer", city: "Montreal"}) ==
- ~s|\n|
+ assert doc(:person, %{occupation: "Developer", city: "Montreal"}) in [
+ ~s|\n|,
+ ~s|\n|
+ ]
assert doc(:person, %{}) == ~s|\n|
end)
@@ -174,11 +176,15 @@ defmodule XmlBuilderTest do
test "element with attributes and content" do
warning =
capture_io(:stderr, fn ->
- assert doc(:person, %{occupation: "Developer", city: "Montreal"}, "Josh") ==
- ~s|\nJosh|
+ assert doc(:person, %{occupation: "Developer", city: "Montreal"}, "Josh") in [
+ ~s|\nJosh|,
+ ~s|\nJosh|
+ ]
- assert doc(:person, %{occupation: "Developer", city: "Montreal"}, nil) ==
- ~s|\n|
+ assert doc(:person, %{occupation: "Developer", city: "Montreal"}, nil) in [
+ ~s|\n|,
+ ~s|\n|
+ ]
assert doc(:person, %{}, "Josh") ==
~s|\nJosh|