mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 05:38:34 +00:00
10 lines
253 B
JavaScript
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');
|
|
});
|
|
});
|