Skip to content

Commit 6f630ca

Browse files
committed
test: try to fix ext/mlj/core test
1 parent 1077550 commit 6f630ca

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

test/integration/ext/dynamicquantities_units/test_units.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ end
196196
using DynamicQuantities
197197
using Random: MersenneTwister
198198

199-
include("utils.jl")
199+
# Type aliases for compatibility
200+
const RealQuantity = DynamicQuantities.RealQuantity
201+
const QuantityArray = DynamicQuantities.QuantityArray
200202

201203
custom_op(x, y) = x + y
202204
options = Options(;
@@ -391,8 +393,10 @@ end
391393
using SymbolicRegression
392394
using SymbolicRegression.DimensionalAnalysisModule: violates_dimensional_constraints
393395
using DynamicQuantities
396+
using Test
394397

395-
include("utils.jl")
398+
onfail(f, ::Test.Fail) = f()
399+
onfail(_, ::Test.Pass) = nothing
396400

397401
options = Options(;
398402
binary_operators=[+, -, *, /, square, cube],

test/integration/ext/mlj/core/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
DynamicExpressions = "a40a106e-89c9-4ca8-8020-a735e8728b6b"
23
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
34
MLJBase = "a7f614a8-145f-11e9-1d2a-a57a1082229d"
45
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"

0 commit comments

Comments
 (0)