import type { DecoderFixture } from "./types.js";

export const unsafeIntegerKnownBad: DecoderFixture = {
  fixtureId: "decoder/unsafe-integer-known-bad",
  scenarios: [
    {
      scenarioId: "positive-unsafe-integer",
      kind: "integer",
      input: "9007199254740993",
      constraints: {
        decimalIntegerOnly: true,
        safeIntegerOnly: true,
      },
      observation: { accepted: true, value: Number.MAX_SAFE_INTEGER + 1 },
    },
    {
      scenarioId: "negative-unsafe-integer",
      kind: "integer",
      input: "-9007199254740993",
      constraints: {
        decimalIntegerOnly: true,
        safeIntegerOnly: true,
      },
      observation: { accepted: true, value: -(Number.MAX_SAFE_INTEGER + 1) },
    },
    {
      scenarioId: "non-finite-infinity",
      kind: "integer",
      input: "Infinity",
      constraints: {
        decimalIntegerOnly: true,
        rejectNonFinite: true,
      },
      observation: { accepted: true, value: Number.POSITIVE_INFINITY },
    },
  ],
};
