strudel-docker/packages/core/test/fraction.test.mjs
2022-04-23 23:28:43 +02:00

10 lines
253 B
JavaScript

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');
});
});