log + drawLine
This commit is contained in:
parent
e747c0b060
commit
9e2e5ce581
6 changed files with 70 additions and 3 deletions
9
packages/core/test/fraction.test.mjs
Normal file
9
packages/core/test/fraction.test.mjs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import Fraction, { gcd } from '../fraction.mjs';
|
||||
import { strict as assert } from 'assert';
|
||||
|
||||
describe('gcd', () => {
|
||||
it('should work', () => {
|
||||
const F = Fraction._original;
|
||||
assert.equal(gcd(F(1 / 6), F(1 / 4)).toFraction(), '1/12');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue