proj home

Files   Classes   Functions   Hierarchy  

mazegameD2state01test Class Reference

Test mazegameD2state01 class. More...

#include <mazegameD2state01test.h>

Collaboration diagram for mazegameD2state01test:

List of all members.

Static Public Member Functions

static int test01 ()
 Test serialization writing, reading and rewriting, then compare strings.

Static Public Attributes

static string doc []
 Brief description of each test.


Detailed Description

Test mazegameD2state01 class.

Definition at line 7 of file mazegameD2state01test.h.


Member Function Documentation

int mazegameD2state01test::test01 (  )  [static]

Test serialization writing, reading and rewriting, then compare strings.

Definition at line 11 of file mazegameD2state01test.cpp.

References mazegameD2state01::game01(), mazegameD2state01::m, mazegameD2state01::n, and mazegameD2state01::serializeInverse().

Referenced by main().

00012 {
00013 
00014   mazegameD2state01 mg1;
00015   mg1.m = 6;
00016   mg1.n = 5;
00017   
00018   mg1.game01();
00019 
00020 //  cout << (stringc)mg1 << endl;
00021 
00022   mazegameD2state01 mg2;
00023   mg2.serializeInverse((stringc)mg1);
00024 //cout << "***" << endl;
00025 //  cout << (stringc)mg2 << endl;
00026 
00027 bool res=((stringc)mg2 == (stringc)mg1);
00028 //cout << SHOW(res) << endl;
00029 
00030   if (res==false)
00031     return 1;
00032 
00033   return 0;
00034 }


Member Data Documentation

string mazegameD2state01test::doc [static]

Initial value:

 
{
  "",
  "Test serialization writing, reading and rewriting, then compare strings."
}
Brief description of each test.

Definition at line 12 of file mazegameD2state01test.h.

Referenced by main().


The documentation for this class was generated from the following files:

Generated on Fri Mar 4 00:50:05 2011 for Chelton Evans Source by  doxygen 1.5.8