Files Classes Functions Hierarchy
00001 00002 #include <mazegameD2state01.h> 00003 #include <mazegameD2state01test.h> 00004 00005 string mazegameD2state01test::doc[] = 00006 { 00007 "", 00008 "Test serialization writing, reading and rewriting, then compare strings." 00009 }; 00010 00011 int mazegameD2state01test::test01() 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 } 00035
1.5.8