projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
format: Always output 2-digit hours for TIME format.
[pspp]
/
tests
/
libpspp
/
abt-test.c
diff --git
a/tests/libpspp/abt-test.c
b/tests/libpspp/abt-test.c
index eae7d46787ba5549a4264aa951496d543c566b1c..8088f19cd93dcc188c7be9cf345fde40b1620eee 100644
(file)
--- a/
tests/libpspp/abt-test.c
+++ b/
tests/libpspp/abt-test.c
@@
-119,7
+119,7
@@
static int aux_data;
static struct element *
abt_node_to_element (const struct abt_node *node)
{
static struct element *
abt_node_to_element (const struct abt_node *node)
{
- return
abt_data
(node, struct element, node);
+ return
ABT_DATA
(node, struct element, node);
}
/* Compares the `x' values in A and B and returns a strcmp-type
}
/* Compares the `x' values in A and B and returns a strcmp-type
@@
-371,6
+371,7
@@
check_abt (struct abt *abt, const int data[], size_t cnt)
check (abt_node_to_element (p)->data == order[cnt - i - 1]);
check (p == NULL);
}
check (abt_node_to_element (p)->data == order[cnt - i - 1]);
check (p == NULL);
}
+ check (abt_is_empty (abt) == (cnt == 0));
free (order);
}
free (order);
}