Skip to content

Commit ffd8a5f

Browse files
committed
Fix constants check
1 parent f793c0b commit ffd8a5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/constants.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using ModelingToolkit, OrdinaryDiffEq, Unitful
22
using Test
33
MT = ModelingToolkit
4+
UMT = ModelingToolkit.UnitfulUnitCheck
45

56
@constants a = 1
67
@test_throws MT.ArgumentError @constants b
@@ -25,7 +26,7 @@ simp = structural_simplify(sys)
2526

2627
#Constant with units
2728
@constants β=1 [unit = u"m/s"]
28-
MT.get_unit(β)
29+
UMT.get_unit(β)
2930
@test MT.isconstant(β)
3031
@variables t [unit = u"s"] x(t) [unit = u"m"]
3132
D = Differential(t)

0 commit comments

Comments
 (0)