Skip to content

Commit

Permalink
Test case for wrong number of columns passed
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Mar 5, 2016
1 parent 5faa5ac commit b701c76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/src/arrow/table/table-test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ TEST_F(TestTable, InvalidColumns) {

columns_.clear();

// Wrong number of columns
table_.reset(new Table("data", schema_, columns_, length));
ASSERT_RAISES(Invalid, table_->ValidateColumns());

columns_ = {
std::make_shared<Column>(schema_->field(0), MakePrimitive<Int32Array>(length)),
std::make_shared<Column>(schema_->field(1), MakePrimitive<UInt8Array>(length)),
Expand Down

0 comments on commit b701c76

Please sign in to comment.