mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-12 02:58:53 -06:00
* JS CodeGen: Add newSetOfT etc This generates convenience functions for new list/set/map. Issue #1081
15 lines
404 B
JavaScript
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)));
|
|
});
|
|
});
|