Changeset 5251 for lang/c

Show
Ignore:
Timestamp:
01/22/08 12:34:00 (5 years ago)
Author:
mrkn
Message:

lang/c/rbtree/branches/bst_inherit_impl/test_bstree.c (dfs_index): correct index order.

Location:
lang/c/rbtree/branches/bst_inherit_impl
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/c/rbtree/branches/bst_inherit_impl/ChangeLog

    r5249 r5251  
    44        test_foreach, test_foreach_range, test_dfs_foreach, 
    55        test_bfs_foreach): finish complete test implementation. 
     6        (dfs_index): correct index order. 
    67 
    78        * bstree.h, test_bstree.c: add generic binary search tree 
  • lang/c/rbtree/branches/bst_inherit_impl/test_bstree.c

    r5249 r5251  
    6464static struct bstree_node* nodes[12] = { 0, }; 
    6565static struct bstree_node* root = 0; 
    66 static int dfs_index[12] = { 0, 1, 4, 3, 2, 6, 8, 7, 10, 11, 9, 5 }; 
     66static int dfs_index[12] = { 5, 2, 1, 0, 3, 4, 9, 7, 6, 8, 11, 10 }; 
    6767static int bfs_index[12] = { 5, 2, 9, 1, 3, 7, 11, 0, 4, 6, 8, 10 }; 
    6868