Skip to content

Commit 6c1a7b3

Browse files
test: drop unused _clamp import from math.jl
`_clamp` was never defined in the source — only `_dead_zone` exists. The Blocks/math.jl test imported both via `using ModelingToolkitStandardLibrary.Blocks: _clamp, _dead_zone`, but neither is used in this file (`_dead_zone` is only used in Blocks/nonlinear.jl, which has its own import). Removing the entire `using` line fixes a UndefVarError that errored out all 93 tests in math.jl. Verified locally: 93/93 pass after the fix. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
1 parent f7946d3 commit 6c1a7b3

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

test/Blocks/math.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using ModelingToolkitStandardLibrary.Blocks
22
using SciCompDSL
33
using ModelingToolkit, OrdinaryDiffEq, Test
4-
using ModelingToolkitStandardLibrary.Blocks: _clamp, _dead_zone
54
using ModelingToolkit: inputs, unbound_inputs, bound_inputs, t_nounits as t
65
using OrdinaryDiffEq: ReturnCode.Success
76
using OrdinaryDiffEqRosenbrock: Rodas4

0 commit comments

Comments
 (0)