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

export const coercionKnownBad: DecoderFixture = {
  fixtureId: "decoder/coercion-known-bad",
  scenarios: [
    {
      scenarioId: "empty-string-to-zero",
      kind: "integer",
      input: "",
      constraints: {
        rejectEmptyCoercion: true,
        decimalIntegerOnly: true,
        safeIntegerOnly: true,
      },
      observation: { accepted: true, value: 0 },
    },
    {
      scenarioId: "null-to-zero",
      kind: "integer",
      input: null,
      constraints: {
        rejectNullCoercion: true,
        decimalIntegerOnly: true,
        safeIntegerOnly: true,
      },
      observation: { accepted: true, value: 0 },
    },
  ],
};
