From b6df4b64b86408eecda34fb15f6ee1e95172f14f Mon Sep 17 00:00:00 2001 From: Jake Norbut Date: Thu, 11 Apr 2019 11:17:55 -0500 Subject: [PATCH] test should actually return the right nodes --- src/client/spark_test/SortedTree/SortedTreeTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/spark_test/SortedTree/SortedTreeTests.cs b/src/client/spark_test/SortedTree/SortedTreeTests.cs index 60748b21c..26d1d8854 100644 --- a/src/client/spark_test/SortedTree/SortedTreeTests.cs +++ b/src/client/spark_test/SortedTree/SortedTreeTests.cs @@ -113,8 +113,8 @@ namespace bts.tests { // replace_success should be true and // we should now get both B and C - // no short circuting since we want to test both conditions - Assert.IsTrue(replace_success & the_children.Count() == 2); + // no short circuting since we want to test all conditions + Assert.IsTrue(replace_success & the_children.Count() == 2 & the_children.Contains(order_b) & the_children.Contains(order_c)); // we will now try to replace a non-existant node replace_success = tree.TryReplace(19, (o) => { o.name = 'Q'; return o; }, out the_children);