Apply mix format to test/thrift/generator/utils_test.exs (#484)

This commit is contained in:
Jon Parise 2019-11-25 10:28:19 -08:00 committed by GitHub
parent c9b6466a6d
commit 87112491d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,15 +9,15 @@ defmodule Thrift.Generator.UtilsTest do
end
test "optimize_iolist" do
check <<0>>, <<0>>
check [<<0>>], <<0>>
check [<<1>>, <<2>>], <<1, 2>>
check [<<1>>, [<<2>>]], <<1, 2>>
check [[<<1>>], <<2>>], <<1, 2>>
check [[[[<<1>>]], [<<2>>]]], <<1, 2>>
check [<<1>>, x, [<<2>>, y]], [<<1>>, x, <<2>> | y]
check [x, <<1>>, [<<2>>, y]], [x, <<1, 2>> | y]
check [<<1, 2>>, <<0>>], <<1, 2, 0>>
check [<<1, 2>>, "foo"], <<1, 2, "foo">>
check(<<0>>, <<0>>)
check([<<0>>], <<0>>)
check([<<1>>, <<2>>], <<1, 2>>)
check([<<1>>, [<<2>>]], <<1, 2>>)
check([[<<1>>], <<2>>], <<1, 2>>)
check([[[[<<1>>]], [<<2>>]]], <<1, 2>>)
check([<<1>>, x, [<<2>>, y]], [<<1>>, x, <<2>> | y])
check([x, <<1>>, [<<2>>, y]], [x, <<1, 2>> | y])
check([<<1, 2>>, <<0>>], <<1, 2, 0>>)
check([<<1, 2>>, "foo"], <<1, 2, "foo">>)
end
end