@@ -27,14 +27,14 @@ main()
27
27
std::string expected3 =" 56" ;
28
28
29
29
StampTwoChars stamp;
30
- GalleySeries galley (stamp);
30
+ GalleyVector galley (stamp);
31
31
Blobblob (short_sample,strlen (short_sample));
32
32
std::vector<std::string> res = galley.ExtractStr (blob);
33
33
34
- is (res[0 ], expected1," GalleySeries , fixed size string stamp: First element of shifted list is ok" );
35
- is (res[1 ], expected2," GalleySeries , fixed size string stamp: Second element of shifted list is ok" );
36
- is (res[2 ], expected3," GalleySeries , fixed size string stamp: Third element of shifted list is ok" );
37
- is (res.size (),3 ," GalleySeries , fixed size string stamp: res has 3 items" );
34
+ is (res[0 ], expected1," GalleyVector , fixed size string stamp: First element of shifted list is ok" );
35
+ is (res[1 ], expected2," GalleyVector , fixed size string stamp: Second element of shifted list is ok" );
36
+ is (res[2 ], expected3," GalleyVector , fixed size string stamp: Third element of shifted list is ok" );
37
+ is (res.size (),3 ," GalleyVector , fixed size string stamp: res has 3 items" );
38
38
}
39
39
/* Test Galley Sereies with unlimited size stamp*/
40
40
{/* 5 .. 9*/
@@ -48,16 +48,16 @@ main()
48
48
49
49
Blobblob (longer_sample,strlen (longer_sample));
50
50
StampTwoCharsList stamp_charlist;
51
- GalleySeries galley (stamp_charlist);
51
+ GalleyVector galley (stamp_charlist);
52
52
53
53
std::vector<std::string> res = galley.ExtractStr (blob);
54
54
std::string str;
55
55
56
- is (res[0 ], expected1," GalleySeries , unlimited size string stamp: First element of shifted list is ok" );
57
- is (res[1 ], expected2," GalleySeries , unlimited size string stamp: Second element of shifted list is ok" );
58
- is (res[2 ], expected3," GalleySeries , unlimited size string stamp: Third element of shifted list is ok" );
59
- is (res[3 ], expected4," GalleySeries , unlimited size string stamp: Fourth element of shifted list is ok" );
60
- is (res.size (),4 ," GalleySeries , unlimited size string stamp: The rest of the list is empty" );
56
+ is (res[0 ], expected1," GalleyVector , unlimited size string stamp: First element of shifted list is ok" );
57
+ is (res[1 ], expected2," GalleyVector , unlimited size string stamp: Second element of shifted list is ok" );
58
+ is (res[2 ], expected3," GalleyVector , unlimited size string stamp: Third element of shifted list is ok" );
59
+ is (res[3 ], expected4," GalleyVector , unlimited size string stamp: Fourth element of shifted list is ok" );
60
+ is (res.size (),4 ," GalleyVector , unlimited size string stamp: The rest of the list is empty" );
61
61
}
62
62
63
63
{/* 10..13*/
67
67
unsigned short int expected3 = (unsigned char )' 6' *256 +(unsigned char )' 5' ;
68
68
69
69
StampArithm<unsigned short int > stamp;
70
- GalleySeries galley (stamp);
70
+ GalleyVector galley (stamp);
71
71
Blobblob (short_sample,strlen (short_sample));
72
72
std::vector<std::vector<char >> res = galley.ExtractBin (blob);
73
73
@@ -76,17 +76,17 @@ main()
76
76
77
77
v = res[0 ];
78
78
data = (unsigned short int *) &v[0 ];
79
- is (*data, expected1," GalleySeries , fixed size binary stamp: First element of shifted list is ok" );
79
+ is (*data, expected1," GalleyVector , fixed size binary stamp: First element of shifted list is ok" );
80
80
81
81
v = res[1 ];
82
82
data = (unsigned short int *) &v[0 ];
83
- is (*data, expected2," GalleySeries , fixed size binary stamp: Second element of shifted list is ok" );
83
+ is (*data, expected2," GalleyVector , fixed size binary stamp: Second element of shifted list is ok" );
84
84
85
85
v = res[2 ];
86
86
data = (unsigned short int *) &v[0 ];
87
- is (*data, expected3," GalleySeries , fixed size binary stamp: Third element of shifted list is ok" );
87
+ is (*data, expected3," GalleyVector , fixed size binary stamp: Third element of shifted list is ok" );
88
88
89
- is (res.size (),3 ," GalleySeries , fixed size binary stamp: result has 3 elements" );
89
+ is (res.size (),3 ," GalleyVector , fixed size binary stamp: result has 3 elements" );
90
90
}
91
91
92
92
/* Test Galley Sereies with variated size stamp*/
@@ -103,17 +103,17 @@ main()
103
103
104
104
Blobblob (sample,strlen (sample));
105
105
StampSeveralChars stamp;
106
- GalleySeries galley (stamp);
106
+ GalleyVector galley (stamp);
107
107
108
108
std::vector<std::string> res = galley.ExtractStr (blob);
109
109
std::string str;
110
110
111
- is (res[0 ], expected1," GalleySeries , unlimited size string stamp: First element of shifted list is ok" );
112
- is (res[1 ], expected2," GalleySeries , unlimited size string stamp: Second element of shifted list is ok" );
113
- is (res[2 ], expected3," GalleySeries , unlimited size string stamp: Third element of shifted list is ok" );
114
- is (res[3 ], expected4," GalleySeries , unlimited size string stamp: Fourth element of shifted list is ok" );
111
+ is (res[0 ], expected1," GalleyVector , unlimited size string stamp: First element of shifted list is ok" );
112
+ is (res[1 ], expected2," GalleyVector , unlimited size string stamp: Second element of shifted list is ok" );
113
+ is (res[2 ], expected3," GalleyVector , unlimited size string stamp: Third element of shifted list is ok" );
114
+ is (res[3 ], expected4," GalleyVector , unlimited size string stamp: Fourth element of shifted list is ok" );
115
115
116
- is (res.size (),4 ," GalleySeries , unlimited size string stamp: The list has only 4 members" );
116
+ is (res.size (),4 ," GalleyVector , unlimited size string stamp: The list has only 4 members" );
117
117
118
118
}
119
119