X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;ds=sidebyside;f=tests%2Flib%2Fmemcmp-t.c;fp=tests%2Flib%2Fmemcmp-t.c;h=0000000000000000000000000000000000000000;hb=b7a32e2d73e3ab1add8208d3e157f7269a31ef4d;hp=2b5978933a30e63ee76edfbdc90fe9e78b0f2757;hpb=ac902a8299ff4469b356836f431ead31c3377377;p=innduct.git diff --git a/tests/lib/memcmp-t.c b/tests/lib/memcmp-t.c deleted file mode 100644 index 2b59789..0000000 --- a/tests/lib/memcmp-t.c +++ /dev/null @@ -1,34 +0,0 @@ -/* $Id: memcmp-t.c 5054 2001-12-12 09:15:24Z rra $ */ -/* memcmp test suite. */ - -#include "config.h" -#include -#include - -#include "libtest.h" - -int test_memcmp(const void *, const void *, size_t); - -int -main(void) -{ - puts("15"); - - ok( 1, test_memcmp("", "", 0) == 0); - ok( 2, test_memcmp("", "", 1) == 0); - ok( 3, test_memcmp("alpha", "alpha", 6) == 0); - ok( 4, test_memcmp("alpha", "beta", 5) < 0); - ok( 5, test_memcmp("beta", "alpha", 5) > 0); - ok( 6, test_memcmp("alpha", "apple", 1) == 0); - ok( 7, test_memcmp("alpha", "apple", 2) < 0); - ok( 8, test_memcmp("\0v", "\0w", 2) < 0); - ok( 9, test_memcmp("\200\201\202", "\200\201\202", 4) == 0); - ok(10, test_memcmp("\200\201\202", "\200\201\203", 4) < 0); - ok(11, test_memcmp("\200\201\203", "\200\201\202", 4) > 0); - ok(12, test_memcmp("al\0po", "al\0pha", 6) > 0); - ok(13, test_memcmp("\100", "\201", 1) < 0); - ok(14, test_memcmp("\200", "\201", 1) < 0); - ok(15, test_memcmp("a", "b", 0) == 0); - - return 0; -}