feat(Tuple): Stub for a template type
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.
This commit is contained in:
parent
21ce098f98
commit
27bf23db54
9 changed files with 176 additions and 3 deletions
9
test/tuple/_native.mjs
Normal file
9
test/tuple/_native.mjs
Normal file
|
@ -0,0 +1,9 @@
|
|||
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)
|
||||
})
|
||||
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue