Files
dolt/nomdl/codegen/test/list-int64-test.js
Erik Arvidsson 9e4266871e JS CodeGen: Add newSetOfT etc (#1195)
* JS CodeGen: Add newSetOfT etc

This generates convenience functions for new list/set/map.

Issue #1081
2016-04-08 15:01:08 -07:00

15 lines
404 B
JavaScript

// @flow
import {assert} from 'chai';
import {suite, test} from 'mocha';
import {newListOfInt64} from './gen/list_int64.noms.js';
import {makeListType, int64Type} from '@attic/noms';
suite('list_int64.noms', () => {
test('constructor', async () => {
const l = await newListOfInt64([0, 1, 2, 3]);
assert.equal(l.length, 4);
assert.isTrue(l.type.equals(makeListType(int64Type)));
});
});