UNPKG

algebra

Version:

means completeness and balancing, from the Arabic word الجبر

24 lines (18 loc) 522 B
/* eslint-env mocha */ const CompositionAlgebra = require('algebra').CompositionAlgebra const realField = require('../src/realField') const R = CompositionAlgebra(realField) describe('CompositionAlgebra', () => { describe('data', () => { const pi = new R(Math.PI) it('is enumerable', () => { Object.prototype.propertyIsEnumerable.call(pi, 'data').should.be.ok() }) it('is immutable', () => { ;(() => { 'use strict' pi.data = 2 }).should.throwError() }) }) })