diff options
| author | Josh Kingsley <josh@joshkingsley.me> | 2025-11-23 19:27:57 +0200 |
|---|---|---|
| committer | Josh Kingsley <josh@joshkingsley.me> | 2025-11-23 19:27:57 +0200 |
| commit | 602145c956bb594ca0d0e10601cc4ad1a71cf70d (patch) | |
| tree | d9f9980bd2054cff5819d01379f5c1c55f8eb66d /web/src/math/Ratio.test.ts | |
| parent | c2a6efb1b761014a90d90373cad47a14054af40b (diff) | |
feat: integrate web and doc packages
Diffstat (limited to 'web/src/math/Ratio.test.ts')
| -rw-r--r-- | web/src/math/Ratio.test.ts | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/web/src/math/Ratio.test.ts b/web/src/math/Ratio.test.ts deleted file mode 100644 index da6fef2..0000000 --- a/web/src/math/Ratio.test.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { describe, expect, test } from "vitest"; -import Ratio from "./Ratio"; - -describe(Ratio, () => { - describe(Ratio.prototype.add, () => { - test("returns fractions in simplest form", () => { - const a = Ratio.fromInteger(0); - const b = new Ratio(1, 4); - - const c = a.add(b); - expect(c.numerator).toBe(1); - expect(c.denominator).toBe(4); - - const d = c.add(b); - expect(d.numerator).toBe(1); - expect(d.denominator).toBe(2); - - const e = d.add(b); - expect(e.numerator).toBe(3); - expect(e.denominator).toBe(4); - - const f = e.add(b); - expect(f.numerator).toBe(1); - expect(f.denominator).toBe(1); - }); - }); -}); |
