Skip to content

Commit bd69d2a

Browse files
committed
Remove extra tests
1 parent ad7c920 commit bd69d2a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

test/test_simplification.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,6 @@ output3, flag3 = eval_tree_array(tree_copy2, X, operators)
9090
# so we weaken the requirement:
9191
@test isapprox(output1, output3, atol=1e-2 * sqrt(N))
9292

93-
# Test that simplification (within the library) preserves shared nodes:
94-
operators = OperatorEnum(; binary_operators=(+, -, *, /))
95-
base_tree = Node(1, Node(; val=0.3), Node(; val=0.2))
96-
tree = x1 * base_tree + base_tree
97-
simplify_tree(tree, operators; preserve_sharing=true)
98-
@test tree.l.r === tree.r
99-
100-
base_tree = (x1 + Node(; val=0.3)) + Node(; val=0.2)
101-
true_simplification_value = 0.5
102-
tree = x2 * base_tree + base_tree
103-
combine_operators(tree, operators; preserve_sharing=true)
104-
# Should not combine twice!
105-
@test tree.l.r.r.val == true_simplification_value
106-
10793
###############################################################################
10894
## Hit other parts of `simplify_tree` and `combine_operators` to increase
10995
## code coverage:

0 commit comments

Comments
 (0)