File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ENV["MTK_ICONS_DIR"] = "$(@__DIR__)/icons"
9
9
10
10
# Mock module used to test if the `@mtkmodel` macro works with fully-qualified names as well.
11
11
module MyMockModule
12
- using .. ModelingToolkit, .. Unitful
12
+ using ModelingToolkit, DynamicQuantities
13
13
14
14
export Pin
15
15
@connector Pin begin
328
328
329
329
# Ensure that modules consisting MTKModels with component arrays and icons of
330
330
# `Expr` type and `unit` metadata can be precompiled.
331
+ module PrecompilationTest
332
+ using Unitful, Test, ModelingToolkit
331
333
@testset " Precompile packages with MTKModels" begin
332
334
push! (LOAD_PATH , joinpath (@__DIR__ , " precompile_test" ))
333
335
340
342
341
343
pop! (LOAD_PATH )
342
344
end
345
+ end
343
346
344
347
@testset " Conditional statements inside the blocks" begin
345
348
@mtkmodel C begin end
Original file line number Diff line number Diff line change 1
1
module ModelParsingPrecompile
2
2
3
- using ModelingToolkit
4
- using Unitful
3
+ using ModelingToolkit, Unitful
5
4
6
5
@mtkmodel ModelWithComponentArray begin
7
6
@parameters begin
You can’t perform that action at this time.
0 commit comments