#include "writers/aslABDFormat.h"
#include "aslUtilities.h"
#include "math/aslVectors.h"
#include "data/aslBlocks.h"
{
cout <<
"Test of Numbers..." <<
flush;
unsigned int aui(3);
int ai(-2);
float af(5);
double ad(4);
afO << aui << ai << af << ad;
afO.close();
unsigned int bui(0);
int bi(0);
float bf(0);
double bd(0);
afI >> bui >> bi >> bf >> bd;
bool status((aui==bui) && (ai==bi) && (af==bf) && (ad==bd));
return status;
}
{
cout <<
"Test of AVec..." <<
flush;
afO << b;
afO.close();
afI >> bn;
bool status((b.getSize() == bn.
getSize()) &&
return status;
}
{
cout <<
"Test of String..." <<
flush;
std::string b("Hello!!");
afO << b;
afO.close();
std::string bn;
afI >> bn;
bool status(b == bn);
return status;
}
{
cout <<
"Test of Block..." <<
flush;
afO << ai << af << ad;
afO.close();
afI >> bi >> bf >> bd;
bool status((ai == bi) && (af == bf) && (ad == bd));
return status;
}
{
bool allTestsPassed(true);
return allTestsPassed ? EXIT_SUCCESS : EXIT_FAILURE;
}
ABD (ASL Binary Dump) file, input.
ABD (ASL Binary Dump) file, output.
const DV & getSize() const
void errorMessage(cl_int status, const char *errorMessage)
Prints errorMessage and exits depending on the status.