/* $Id: unittest.cc 4034 2008-10-03 01:17:40Z rares $ Copyright (C) 2007 by The Regents of the University of California Redistribution of this file is permitted under the terms of the BSD license Date: 04/03/2007 Author: Rares Vernica */ #include #include #include "sepia.h" using namespace std; void testSepia() { unsigned t = 0; vector data; data.push_back("abc"); data.push_back("ac"); data.push_back("xyz"); Sepia sSave(data, 1, 2, 1, 1, MEDOIDS_IMP, CLOSE_RAND, 1, 1, 1, 1, 1, 1); sSave.build(); sSave.saveData("sepia"); // save Sepia sLoad(data, "sepia"); // load assert(sSave == sLoad); t++; cout << "sepia (" << t << ")" << endl; } int main() { cout << "test..." << endl; testSepia(); cout << "OK" << endl; }