Skip to content

Commit ae9312f

Browse files
Update unit_check.jl
1 parent baf2939 commit ae9312f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/systems/unit_check.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ function get_unit(op::Integral, args)
103103
return get_unit(args[1]) * unit
104104
end
105105

106-
equivalent(x, y) = isequal(x, y)
106+
"""
107+
Test unit equivalence.
108+
"""
109+
equivalent(x, y) = isequal(1 * x, 1 * y)
107110
function get_unit(op::Conditional, args)
108111
terms = get_unit.(args)
109112
terms[1] == unitless ||

0 commit comments

Comments
 (0)