feat: implicit convert BooleanT to NumberT
All checks were successful
/ test (pull_request) Successful in 19s

Also adds implicit conversion configuration option to Type constructor,
  and institutes a numbers-only bundle, and supports argument matching
  with implicit conversions.

  Still need to test that a behavior that invokes implicit conversion ends up
  with the conversion operation as a dependency (and so regenerates itself if
  the conversion changes).
This commit is contained in:
Glen Whitney 2025-04-10 22:47:30 -07:00
parent 5bee93dbb3
commit bfc64f3789
14 changed files with 95 additions and 34 deletions

View file

@ -0,0 +1,9 @@
import assert from 'assert'
import math from '../numbers.js'
describe('the numbers-only bundle', () => {
it('works like regular on number-only functions', () => {
assert.strictEqual(math.quotient(5, 3), 1)
assert.strictEqual(math.square(-3), 9)
})
})