import * as stateModule from "../../../../../src/adapters/syllabs/fr/states/c.ts";
import frStateMachine from "../../../../../src/adapters/syllabs/fr/fr-state-machine.ts";
import { describeExportedStateRules } from "../state-rule-test-helper.ts";

describeExportedStateRules("c", stateModule);

describe("c state regressions", () => {
  it('keeps the final "c" mute in "estomac"', () => {
    const phonemes = frStateMachine.extrairePhonemes("estomac");

    expect(phonemes.map((phoneme) => phoneme.phoneme)).toEqual([
      "e",
      "s",
      "t",
      "o",
      "m",
      "a",
      "#",
    ]);
  });
});
