tview.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1999-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#include "dttest.h"
{ 0, sizeof(long), -1,
};
#if __STD_C
#else
#endif
{
Count += 1;
return 0;
}
tmain()
{
long i, k;
terror("Opening Dtoset");
terror("Opening Dtoset");
terror("Opening Dtoset");
terror("Finding 4 here?");
terror("Should find 4 here!");
if(Count != 6)
terror("Walk wrong length");
for(i = 1; i <= 6; ++i)
if(!See[i] )
terror("Bad walk");
Count = 0;
Count++;
if(Count != 6)
terror("Walk wrong length2");
Count = 0;
Count++;
if(Count != 6)
terror("Walk wrong length3");
/* check union of elements in order across ordered sets */
if(i != k)
terror("Elements not appearing in order");
terror("dtatmost failed on an order set");
terror("dtatleast failed on an order set");
/* dt1: 1 3 5 2
dt2: 2 4 6 3
dt3: 2 7 6 8 10
*/
Count = 0;
Count++;
if(Count != 9)
terror("Walk wrong length4");
texit(0);
}