@@ -68,7 +68,6 @@ for turbo in [false, true], T in [Float16, Float32, Float64], fnc in functions
6868 @test all (abs .(test_y .- true_y) / N .< zero_tolerance)
6969end
7070
71-
7271for turbo in [false , true ], T in [Float16, Float32, Float64]
7372 turbo && T == Float16 && continue
7473 # Test specific branches of evaluation code:
@@ -99,16 +98,15 @@ for turbo in [false, true], T in [Float16, Float32, Float64]
9998 @test DynamicExpressions. EvaluateEquationModule. deg1_l2_ll0_lr0_eval (
10099 tree, [zero (T)]' , Val (1 ), Val (1 ), operators, Val (turbo)
101100 )[1 ][1 ] ≈ truth
102-
101+
103102 # Test for presence of NaNs:
104103 operators = OperatorEnum (; binary_operators= [+ , - , * , / ], unary_operators= [cos, sin])
105104 x1 = Node (T; feature= 1 )
106105 tree = sin (x1 / 0.0 )
107- X = randn (Float32, 3 , 10 );
106+ X = randn (Float32, 3 , 10 )
108107 @test isnan (tree (X)[1 ])
109108end
110109
111-
112110# And, with generic operator enum, this should be an actual error:
113111operators = GenericOperatorEnum (; binary_operators= [+ , - , * , / ], unary_operators= [cos, sin])
114112x1 = Node (Float64; feature= 1 )
0 commit comments