mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 20:00:22 -05:00
9e4266871e
* JS CodeGen: Add newSetOfT etc This generates convenience functions for new list/set/map. Issue #1081
14 lines
345 B
JavaScript
14 lines
345 B
JavaScript
// @flow
|
|
|
|
import {assert} from 'chai';
|
|
import {suite, test} from 'mocha';
|
|
import {newSetOfBool} from './gen/set.noms.js';
|
|
import {makeSetType, boolType} from '@attic/noms';
|
|
|
|
suite('set.noms', () => {
|
|
test('constructor', async () => {
|
|
const s = await newSetOfBool([true]);
|
|
assert.isTrue(s.type.equals(makeSetType(boolType)));
|
|
});
|
|
});
|