-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove useless tests grouping
- Loading branch information
Showing
2 changed files
with
225 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
import { BigIntMath } from "./big-int"; | ||
import { describe, expect, it } from "vitest"; | ||
|
||
describe("BigIntMath", () => { | ||
describe("min", () => { | ||
it("gets the correct minimum value", () => | ||
expect(BigIntMath.min(-1n, 0n, 1n)).toBe(-1n)); | ||
describe("min", () => { | ||
it("gets the correct minimum value", () => | ||
expect(BigIntMath.min(-1n, 0n, 1n)).toBe(-1n)); | ||
|
||
it("returns the first value if only one value is passed", () => | ||
expect(BigIntMath.min(1n)).toBe(1n)); | ||
it("returns the first value if only one value is passed", () => | ||
expect(BigIntMath.min(1n)).toBe(1n)); | ||
|
||
it("returns 0n if no values is passed", () => | ||
expect(BigIntMath.min()).toBe(0n)); | ||
}); | ||
it("returns 0n if no values is passed", () => | ||
expect(BigIntMath.min()).toBe(0n)); | ||
}); | ||
|
||
describe("max", () => { | ||
it("gets the correct maximum value", () => | ||
expect(BigIntMath.max(-1n, 0n, 1n)).toBe(1n)); | ||
describe("max", () => { | ||
it("gets the correct maximum value", () => | ||
expect(BigIntMath.max(-1n, 0n, 1n)).toBe(1n)); | ||
|
||
it("returns the first value if only one value is passed", () => | ||
expect(BigIntMath.max(-1n)).toBe(-1n)); | ||
it("returns the first value if only one value is passed", () => | ||
expect(BigIntMath.max(-1n)).toBe(-1n)); | ||
|
||
it("returns 0n if no values is passed", () => | ||
expect(BigIntMath.max()).toBe(0n)); | ||
}); | ||
it("returns 0n if no values is passed", () => | ||
expect(BigIntMath.max()).toBe(0n)); | ||
}); |
Oops, something went wrong.