Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

539 B
Raw Blame
import { Ordering } from "effect"
import { deepStrictEqual } from "node:assert"
import { describe, it } from "vitest"

describe("Ordering", () => {
  it("Reducer", () => {
    const R = Ordering.Reducer

    deepStrictEqual(R.combine(-1, 1), -1)
    deepStrictEqual(R.combine(1, -1), 1)
    deepStrictEqual(R.combine(1, 1), 1)
    deepStrictEqual(R.combine(0, 0), 0)
    deepStrictEqual(R.combine(0, 1), 1)
    deepStrictEqual(R.combine(1, 0), 1)
    deepStrictEqual(R.combine(0, -1), -1)
    deepStrictEqual(R.combine(-1, 0), -1)
  })
})