Glen Whitney
27bf23db54
This adds the target initial definition of a homogeneous Tuple<T> type, and just enough processing that the type can be defined and non-template methods that deal with the generic base type Tuple can be called. Still has no actual template instantiation.
10 lines
225 B
JavaScript
10 lines
225 B
JavaScript
import assert from 'assert'
|
|
import math from '../../src/pocomath.mjs'
|
|
|
|
describe('tuple', () => {
|
|
it('can be created and provide its length', () => {
|
|
assert.strictEqual(math.length(math.tuple(3,5.2,2n)), 3)
|
|
})
|
|
|
|
})
|