Skip to content

Commit 102443a

Browse files
test(column-store): fix bitmap tests
1 parent d522224 commit 102443a

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

packages/column-store/test/bitmap.test.ts

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -94,58 +94,58 @@ describe("bitmap index", () => {
9494
);
9595

9696
expect(getBitmaps()).toEqual({
97-
x: [0, 0, 0b1_1100],
98-
y: [0, 0, 0b1_0100],
99-
z: [0, 0, 0b1_1000],
97+
0: [0, 0, 0b1_1100],
98+
1: [0, 0, 0b1_0100],
99+
2: [0, 0, 0b1_1000],
100100
});
101101

102102
table.removeRow(0);
103103
expect(getBitmaps()).toEqual({
104-
x: [0, 0, 0b1110],
105-
y: [0, 0, 0b1010],
106-
z: [0, 0, 0b1100],
104+
0: [0, 0, 0b1110],
105+
1: [0, 0, 0b1010],
106+
2: [0, 0, 0b1100],
107107
});
108108

109109
table.removeRow(64);
110110
expect(getBitmaps()).toEqual({
111-
x: [0, 0, 0b111],
112-
y: [0, 0, 0b101],
113-
z: [0, 0, 0b110],
111+
0: [0, 0, 0b111],
112+
1: [0, 0, 0b101],
113+
2: [0, 0, 0b110],
114114
});
115115

116116
table.removeRow(0);
117117
expect(getBitmaps()).toEqual({
118-
x: [0, 0b10000000_00000000_00000000_00000000, 0b11],
119-
y: [0, 0b10000000_00000000_00000000_00000000, 0b10],
120-
z: [0, 0, 0b11],
118+
0: [0, 0b10000000_00000000_00000000_00000000, 0b11],
119+
1: [0, 0b10000000_00000000_00000000_00000000, 0b10],
120+
2: [0, 0, 0b11],
121121
});
122122

123123
table.removeRow(64);
124124
expect(getBitmaps()).toEqual({
125-
x: [0, 0b10000000_00000000_00000000_00000000, 0b1],
126-
y: [0, 0b10000000_00000000_00000000_00000000, 0b1],
127-
z: [0, 0, 0b1],
125+
0: [0, 0b10000000_00000000_00000000_00000000, 0b1],
126+
1: [0, 0b10000000_00000000_00000000_00000000, 0b1],
127+
2: [0, 0, 0b1],
128128
});
129129

130130
table.removeRow(32);
131131
expect(getBitmaps()).toEqual({
132-
x: [0, 0b11000000_00000000_00000000_00000000, 0],
133-
y: [0, 0b11000000_00000000_00000000_00000000, 0],
134-
z: [0, 0b10000000_00000000_00000000_00000000, 0],
132+
0: [0, 0b11000000_00000000_00000000_00000000, 0],
133+
1: [0, 0b11000000_00000000_00000000_00000000, 0],
134+
2: [0, 0b10000000_00000000_00000000_00000000, 0],
135135
});
136136

137137
table.removeRow(62);
138138
expect(getBitmaps()).toEqual({
139-
x: [0, 0b01000000_00000000_00000000_00000000, 0],
140-
y: [0, 0b01000000_00000000_00000000_00000000, 0],
141-
z: [0, 0b01000000_00000000_00000000_00000000, 0],
139+
0: [0, 0b01000000_00000000_00000000_00000000, 0],
140+
1: [0, 0b01000000_00000000_00000000_00000000, 0],
141+
2: [0, 0b01000000_00000000_00000000_00000000, 0],
142142
});
143143

144144
table.updateRow(8, { a: ["y", "z"] });
145145
expect(getBitmaps()).toEqual({
146-
x: [0, 0b01000000_00000000_00000000_00000000, 0],
147-
y: [0b1_00000000, 0b01000000_00000000_00000000_00000000, 0],
148-
z: [0b1_00000000, 0b01000000_00000000_00000000_00000000, 0],
146+
0: [0, 0b01000000_00000000_00000000_00000000, 0],
147+
1: [0b1_00000000, 0b01000000_00000000_00000000_00000000, 0],
148+
2: [0b1_00000000, 0b01000000_00000000_00000000_00000000, 0],
149149
});
150150
});
151151

0 commit comments

Comments
 (0)