summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-04-02 11:52:00 +0600
committerDaniil Baturin <daniil@baturin.org>2015-04-02 11:52:00 +0600
commitaed10315b97f770e07bf1acbf2f4cb7aa64b81ae (patch)
tree80ac0c5b9fc4720f0c98b3a53e1c3d41d212a637 /test
parent13e194a7bcf3161f05bcfb55d1433d46601018a3 (diff)
downloadvyconf-aed10315b97f770e07bf1acbf2f4cb7aa64b81ae.tar.gz
vyconf-aed10315b97f770e07bf1acbf2f4cb7aa64b81ae.zip
Fix Vytree.update and its unit test.
Diffstat (limited to 'test')
-rw-r--r--test/vyconf_tree_test.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/vyconf_tree_test.ml b/test/vyconf_tree_test.ml
index eca40ce..3d8c52a 100644
--- a/test/vyconf_tree_test.ml
+++ b/test/vyconf_tree_test.ml
@@ -94,7 +94,7 @@ let test_get_child_nonexistent test_ctxt =
let test_update test_ctxt =
let node = make "root" 0 in
let node = insert 0 node ["foo"] 1 in
- assert_equal (data_of_node (update node ["foo"] 9)) 9
+ assert_equal (data_of_node (get (update node ["foo"] 9) ["foo"])) 9
let suite =
"VyConf tree tests" >::: [