Files
dolt/nomdl/codegen/test/set-test.js
T
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

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)));
});
});