/***********************************************************************
* *
* 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,
};
tmain()
{
/* testing Dtstack */
terror("dtopen stack");
terror("Dtstack insert 1");
terror("Dtstack insert 3.1");
terror("Dtstack insert 2.1");
terror("Dtstack insert 3.2");
terror("Dtstack insert 2.2");
terror("Dtstack insert 3.3");
terror("Dtstack dtlast");
terror("Dtstack dtprev 1");
terror("Dtstack dtprev 3.1");
terror("Dtstack dtprev 2.1");
terror("Dtstack dtprev 3.2");
terror("Dtstack dtprev 2.2");
terror("Dtstack dtprev 3.2");
terror("Dtstack pop 3.3");
/* search to one of the 3 */
terror("Dtstack search 3.2");
terror("Dtstack delete 3.2");
terror("Dtstack pop 2.2");
terror("Dtstack pop 2.1");
terror("Dtstack pop 3.1");
terror("Dtstack pop 1");
terror("Dtstack size");
texit(0);
}