/* PSPP - computes sample statistics.
Copyright (C) 2006 Free Software Foundation, Inc.
/* PSPP - computes sample statistics.
Copyright (C) 2006 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
- printf ("check failed at %s, line %d\n", __FILE__, line);
+ printf ("Check failed in %s test at %s, line %d\n",
+ test_name, __FILE__, line);
pattern_pred (const struct ll *element_, void *pattern_)
{
const struct element *element = ll_to_element (element_);
pattern_pred (const struct ll *element_, void *pattern_)
{
const struct element *element = ll_to_element (element_);
/* Returns the number of permutations of the CNT values in
VALUES. If VALUES contains duplicates, they must be
adjacent. */
/* Returns the number of permutations of the CNT values in
VALUES. If VALUES contains duplicates, they must be
adjacent. */
int *old_values = xnmalloc (max_elems, sizeof *values);
int *new_values = xnmalloc (max_elems, sizeof *values);
int *old_values = xnmalloc (max_elems, sizeof *values);
int *new_values = xnmalloc (max_elems, sizeof *values);
run_test (test_sort_unique, "sort_unique");
run_test (test_insert_ordered, "insert_ordered");
run_test (test_partition, "partition");
run_test (test_sort_unique, "sort_unique");
run_test (test_insert_ordered, "insert_ordered");
run_test (test_partition, "partition");