mirror of
https://github.com/valitydev/elixir-thrift.git
synced 2024-11-06 10:15:17 +00:00
Apply mix format
to test/thrift/generator/utils_test.exs (#484)
This commit is contained in:
parent
c9b6466a6d
commit
87112491d7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user