Skip to content

Commit bd1a4d6

Browse files
committed
Format and update tests
1 parent 4b7e89f commit bd1a4d6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/systems/abstractsystem.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ function structural_simplify(sys::AbstractSystem, io = nothing; simplify = false
965965
sys = alias_elimination!(state)
966966
# TODO: avoid construct `TearingState` again.
967967
state = TearingState(sys)
968-
has_io && markio!(state, io..., check=false)
968+
has_io && markio!(state, io..., check = false)
969969
check_consistency(state)
970970
find_solvables!(state; kwargs...)
971971
sys = dummy_derivative(sys, state; simplify)
@@ -1077,11 +1077,11 @@ function markio!(state, inputs, outputs; check = true)
10771077
end
10781078
end
10791079
check && (all(values(inputset)) ||
1080-
error("Some specified inputs were not found in system. The following Dict indicates the found variables ",
1081-
inputset))
1080+
error("Some specified inputs were not found in system. The following Dict indicates the found variables ",
1081+
inputset))
10821082
check && (all(values(outputset)) ||
1083-
error("Some specified outputs were not found in system. The following Dict indicates the found variables ",
1084-
outputset))
1083+
error("Some specified outputs were not found in system. The following Dict indicates the found variables ",
1084+
outputset))
10851085
state
10861086
end
10871087

test/reduction.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ show(io, MIME("text/plain"), lorenz1_aliased);
3737
str = String(take!(io));
3838
@test all(s -> occursin(s, str), ["lorenz1", "States (2)", "Parameters (3)"])
3939
reduced_eqs = [D(x) ~ σ * (y - x)
40-
D(y) ~ β + x * + a) - y]
40+
D(y) ~ β +- z) * x - y]
4141
test_equal.(equations(lorenz1_aliased), reduced_eqs)
4242
@test isempty(setdiff(states(lorenz1_aliased), [x, y, z]))
4343
test_equal.(observed(lorenz1_aliased), [u ~ 0
44-
a ~ y - x
45-
z ~ -a])
44+
z ~ x - y
45+
a ~ -z])
4646

4747
# Multi-System Reduction
4848

0 commit comments

Comments
 (0)