Skip to content

Commit d271f61

Browse files
committed
Avoid costly Enum.count when matching against an empty list
1 parent aa7527c commit d271f61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scenic/primitives_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ defmodule Scenic.PrimitivesTest do
8686
|> Graph.get!(:group)
8787

8888
assert p.module == Scenic.Primitive.Group
89-
assert Enum.count(p.data) == 0
89+
assert p.data == []
9090
assert p.id == :group
9191
end
9292

0 commit comments

Comments
 (0)