mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fixed test [#CLICKHOUSE-3].
This commit is contained in:
parent
db3d56b1f5
commit
bf58b8cdb1
@ -4,7 +4,7 @@ using DB::RowSourcePart;
|
||||
|
||||
static void check(const RowSourcePart & s, size_t num, bool flag)
|
||||
{
|
||||
EXPECT_FALSE((s.getSourceNum() != num || s.getSkipFlag() != flag) || (!flag && s.getData() != num));
|
||||
EXPECT_FALSE((s.getSourceNum() != num || s.getSkipFlag() != flag) || (!flag && s.data != num));
|
||||
}
|
||||
|
||||
TEST(ColumnGathererStream, RowSourcePartBitsTest)
|
||||
@ -16,12 +16,12 @@ TEST(ColumnGathererStream, RowSourcePartBitsTest)
|
||||
check(RowSourcePart(RowSourcePart::MAX_PARTS, false), RowSourcePart::MAX_PARTS, false);
|
||||
check(RowSourcePart(RowSourcePart::MAX_PARTS, true), RowSourcePart::MAX_PARTS, true);
|
||||
|
||||
RowSourcePart p{80, false};
|
||||
check(p, 80, false);
|
||||
p.setSkipFlag(true);
|
||||
check(p, 80, true);
|
||||
p.setSkipFlag(false);
|
||||
check(p, 80, false);
|
||||
p.setSourceNum(RowSourcePart::MAX_PARTS);
|
||||
check(p, RowSourcePart::MAX_PARTS, false);
|
||||
RowSourcePart p{80, false};
|
||||
check(p, 80, false);
|
||||
p.setSkipFlag(true);
|
||||
check(p, 80, true);
|
||||
p.setSkipFlag(false);
|
||||
check(p, 80, false);
|
||||
p.setSourceNum(RowSourcePart::MAX_PARTS);
|
||||
check(p, RowSourcePart::MAX_PARTS, false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user