Files Classes Functions Hierarchy
#include <mazegameD2state01test.h>
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. | |
Definition at line 7 of file mazegameD2state01test.h.
| 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 }
string mazegameD2state01test::doc [static] |
Initial value:
{
"",
"Test serialization writing, reading and rewriting, then compare strings."
}
Definition at line 12 of file mazegameD2state01test.h.
Referenced by main().
1.5.8