@@ -175,6 +175,99 @@ func TestInsertBooleans(t *testing.T) {
175175 }
176176 }
177177}
178+ func TestInsertIntegersActive (t * testing.T ) {
179+ {
180+ m := map [string ]uint64 {
181+ "active" : 1 ,
182+ "inactive" : 0 ,
183+ }
184+ b := Make (m , 1 )
185+ for k , v := range m {
186+ valb := GetBool (b , k )
187+ if (v != 0 ) != valb {
188+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , valb , k , v )
189+ }
190+ val := uint64 (GetNum (b , 1 , k ))
191+ if v != val {
192+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , val , k , v )
193+ }
194+
195+ }
196+ }
197+ {
198+ m := map [string ]uint64 {
199+ "S0t6lRZL" : 1 ,
200+ "kSix4YCB" : 0 ,
201+ }
202+ b := Make (m , 1 )
203+ for k , v := range m {
204+ valb := GetBool (b , k )
205+ if (v != 0 ) != valb {
206+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , valb , k , v )
207+ }
208+ val := uint64 (GetNum (b , 1 , k ))
209+ if v != val {
210+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , val , k , v )
211+ }
212+
213+ }
214+ }
215+ {
216+ m := map [string ]uint64 {
217+ "NDD63C2T" : 1 ,
218+ "yAVmNkB3" : 0 ,
219+ }
220+ b := Make (m , 1 )
221+ for k , v := range m {
222+ valb := GetBool (b , k )
223+ if (v != 0 ) != valb {
224+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , valb , k , v )
225+ }
226+ val := uint64 (GetNum (b , 1 , k ))
227+ if v != val {
228+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , val , k , v )
229+ }
230+
231+ }
232+ }
233+ {
234+ m := map [string ]uint64 {
235+ "MdR8DAqA" : 0 ,
236+ "hgPXP3o6" : 1 ,
237+ }
238+ b := Make (m , 1 )
239+ for k , v := range m {
240+ valb := GetBool (b , k )
241+ if (v != 0 ) != valb {
242+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , valb , k , v )
243+ }
244+ val := uint64 (GetNum (b , 1 , k ))
245+ if v != val {
246+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , val , k , v )
247+ }
248+
249+ }
250+ }
251+ {
252+ m := map [string ]uint64 {
253+ "S0t6lRZL" : 0 ,
254+ "lyBFeCmp" : 1 ,
255+ }
256+ b := Make (m , 1 )
257+ for k , v := range m {
258+ valb := GetBool (b , k )
259+ if (v != 0 ) != valb {
260+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , valb , k , v )
261+ }
262+ val := uint64 (GetNum (b , 1 , k ))
263+ if v != val {
264+ t .Fatalf ("Insert Integers Active returned %v for %s want %v" , val , k , v )
265+ }
266+
267+ }
268+ }
269+ }
270+
178271func TestInsertIntegers (t * testing.T ) {
179272 {
180273 m := map [string ]uint8 {
0 commit comments