Skip to content

Commit

Permalink
Added test for ENUM type
Browse files Browse the repository at this point in the history
  • Loading branch information
si-mw committed Sep 7, 2018
1 parent c10f153 commit 4c4f179
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,11 @@ describe('test-files', function() {
assert.deepEqual(data,[{foo: 'bar'},{}]);
});

it('test-enum-type.parquet loads', async function() {
const data = await readData('test-enum-type.parquet');
assert.deepEqual(data,[{foo: 'bar'}]);
});

it('test-null-dictionary.parquet loads', async function() {
const data = await readData('test-null-dictionary.parquet');
assert.deepEqual(data,[].concat.apply([{}],[...Array(3)].map( () => ([{foo: 'bar'}, {foo: 'baz'}]))));
Expand Down
Binary file added test/test-files/test-enum-type.parquet
Binary file not shown.

0 comments on commit 4c4f179

Please sign in to comment.