Skip to content

Commit

Permalink
Only test inference of quantities on latest Julia
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Sep 21, 2023
1 parent e43e187 commit 93802ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/unittests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,6 @@ for (x, y) in expected_type_pairs
end

@test base_numeric_type(1.5DynamicQuantities.u"km/s") == base_numeric_type(typeof(1.5DynamicQuantities.u"km/s"))
@inferred base_numeric_type(1.5DynamicQuantities.u"km/s")
if VERSION >= v"1.10"
@inferred base_numeric_type(1.5DynamicQuantities.u"km/s")
end

0 comments on commit 93802ff

Please sign in to comment.