We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acf3dbc commit 24c4bd6Copy full SHA for 24c4bd6
test/test_expressions.jl
@@ -226,9 +226,13 @@ end
226
227
@testitem "Miscellaneous expression calls" begin
228
using DynamicExpressions
229
+ using DynamicExpressions: get_tree, get_operators
230
231
ex = @parse_expression(x1 + 1.5, binary_operators = [+], variable_names = ["x1"])
232
@test DynamicExpressions.ExpressionModule.node_type(ex) <: Node
233
234
@test !isempty(ex)
235
+
236
+ tree = get_tree(ex)
237
+ @test_throws ArgumentError get_operators(tree, nothing)
238
end
0 commit comments