
#include <mazegameD2state01.h>
#include <mazegameD2state01test.h>

string mazegameD2state01test::doc[] = 
{
  "",
  "Test serialization writing, reading and rewriting, then compare strings."
};

int mazegameD2state01test::test01()
{

  mazegameD2state01 mg1;
  mg1.m = 6;
  mg1.n = 5;
  
  mg1.game01();

//  cout << (stringc)mg1 << endl;

  mazegameD2state01 mg2;
  mg2.serializeInverse((stringc)mg1);
//cout << "***" << endl;
//  cout << (stringc)mg2 << endl;

bool res=((stringc)mg2 == (stringc)mg1);
//cout << SHOW(res) << endl;

  if (res==false)
    return 1;

  return 0;
}


