Skip to content

Commit bff5466

Browse files
committed
run formatter
1 parent d061f75 commit bff5466

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

test/scenic/math/matrix_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,11 @@ defmodule Scenic.Math.MatrixTest do
384384
assert Matrix.rotate(mx_trans, 1.3) == Matrix.mul(mx_trans, mx_rot)
385385
end
386386

387+
test "rotate does nothing with nil" do
388+
mx_trans = Matrix.build_translation({123, 456})
389+
assert Matrix.rotate(mx_trans, nil) == mx_trans
390+
end
391+
387392
test "translate translates a matrix" do
388393
mx_trans = Matrix.build_translation({123, 456})
389394
mx_rot = Matrix.build_rotation(1.3)

test/scenic/primitive/style/paint/color_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ defmodule Scenic.Primitive.Style.Paint.ColorTest do
44
import Scenic.Primitive.Style.Paint.Color
55

66
test "to_rgba with numbers" do
7-
assert to_rgba({1,2,3}) == {1,2,3,0xFF}
8-
assert to_rgba({1,2,3,4}) == {1,2,3,4}
7+
assert to_rgba({1, 2, 3}) == {1, 2, 3, 0xFF}
8+
assert to_rgba({1, 2, 3, 4}) == {1, 2, 3, 4}
99
end
1010

1111
test "to_rgba/1" do

test/scenic/primitive/style/paint/image_test.exs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ defmodule Scenic.Primitive.Style.Paint.ImageTest do
1212
end
1313

1414
test "normalize works with everything set" do
15-
assert Image.normalize({"hash_string", 1, 2, 3, 4, 5, 6}) ==
16-
{"hash_string", 1, 2, 3, 4, 5, 6}
15+
assert Image.normalize({"hash_string", 1, 2, 3, 4, 5, 6}) == {"hash_string", 1, 2, 3, 4, 5, 6}
1716
end
18-
19-
end
17+
end

test/scenic/primitive/transform_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ defmodule Scenic.Primitive.TransformTest do
3333
# verify!
3434

3535
test "verify! works" do
36-
assert Transform.verify!(:pin, {1,1})
36+
assert Transform.verify!(:pin, {1, 1})
3737
end
3838

3939
test "verify! rejects invalid transform types" do
4040
assert_raise Scenic.Primitive.Transform.FormatError, fn ->
41-
assert Transform.verify!(:invalid, {1,1})
41+
assert Transform.verify!(:invalid, {1, 1})
4242
end
4343
end
4444

0 commit comments

Comments
 (0)