Skip to content

Commit 858671e

Browse files
committed
Simplify arbitrary scale
1 parent c8ba676 commit 858671e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/test_helper.exs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@ defmodule Mudbrick.TestHelper do
192192
end
193193

194194
def scale do
195-
bind(one_of([:x_auto, :y_auto, :neither]), fn
196-
:x_auto -> {:auto, float_non_exponential()}
197-
:y_auto -> {float_non_exponential(), :auto}
198-
:neither -> coords()
199-
end)
195+
one_of([
196+
{:auto, float_non_exponential()},
197+
{float_non_exponential(), :auto},
198+
coords()
199+
])
200200
end
201201

202202
defp float_non_exponential do

0 commit comments

Comments
 (0)