From 1a57489d041b56c630f998fe02b00318e89bea65 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 16:49:54 +0200 Subject: [PATCH] chore(fixtures): invented text in place of words that may come from the private recording; the research note no longer names the private file (adversarial review F10) Co-Authored-By: Claude Sonnet 5.5 --- internal/reconcile/reconcile_test.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/internal/reconcile/reconcile_test.go b/internal/reconcile/reconcile_test.go index cb1bb45..0f26740 100644 --- a/internal/reconcile/reconcile_test.go +++ b/internal/reconcile/reconcile_test.go @@ -58,10 +58,10 @@ func TestReconcile_IdenticalTextsNeedNoModelAndComeBackUnchanged(t *testing.T) { func TestReconcile_TrivialDisputesAreResolvedWithoutAskingTheModel(t *testing.T) { adj := always(reconcile.VerdictAlt) - out := merge(t, tr("i crossborder delen ska vi ju betala"), tr("i crossborderdelen ska vi betala"), adj) + out := merge(t, tr("i takrenns delen ska vi ju betala"), tr("i takrennsdelen ska vi betala"), adj) assert.Empty(t, adj.calls, "a compound split and a filler particle are not worth a model call") - assert.Equal(t, "i crossborder delen ska vi ju betala", out.Text, "the base reading is kept") + assert.Equal(t, "i takrenns delen ska vi ju betala", out.Text, "the base reading is kept") assert.Equal(t, 2, out.Reconciliation.Disputes) assert.Equal(t, 2, out.Reconciliation.AutoResolved) assert.Zero(t, out.Reconciliation.Adjudicated) @@ -76,13 +76,13 @@ func TestReconcile_AltVerdictReplacesTheSpanWithTheAlternativesOwnWords(t *testi } func TestReconcile_BaseAndUnsureVerdictsKeepTheBaseButOnlyUnsureIsFlagged(t *testing.T) { - base := tr("Totalt 1015 kronor till SEB.") - alt := tr("Totalt 1050 kronor till SCB.") + base := tr("Totalt 1015 kronor till Axel.") + alt := tr("Totalt 1050 kronor till Alex.") keptBase := merge(t, base, alt, always(reconcile.VerdictBase)) unsure := merge(t, base, alt, always(reconcile.VerdictUnsure)) - assert.Equal(t, "Totalt 1015 kronor till SEB.", keptBase.Text) + assert.Equal(t, "Totalt 1015 kronor till Axel.", keptBase.Text) assert.Zero(t, keptBase.Reconciliation.Unsure) require.Len(t, keptBase.Reconciliation.Contested, 2, "every judged spot is stored, kept ones too: without them the reconciler cannot be compared with either engine alone (ADR-035)") @@ -90,7 +90,7 @@ func TestReconcile_BaseAndUnsureVerdictsKeepTheBaseButOnlyUnsureIsFlagged(t *tes assert.Equal(t, "base", c.Used) assert.False(t, c.Unsure, "a confident 'the base is right' is stored but is not an uncertain spot") } - assert.Equal(t, "Totalt 1015 kronor till SEB.", unsure.Text, "unsure keeps the base") + assert.Equal(t, "Totalt 1015 kronor till Axel.", unsure.Text, "unsure keeps the base") assert.Equal(t, 2, unsure.Reconciliation.Unsure) require.Len(t, unsure.Reconciliation.Contested, 2) assert.True(t, unsure.Reconciliation.Contested[0].Unsure) @@ -98,12 +98,12 @@ func TestReconcile_BaseAndUnsureVerdictsKeepTheBaseButOnlyUnsureIsFlagged(t *tes } func TestReconcile_ChangedSpotsAreRecordedWithBothReadings(t *testing.T) { - out := merge(t, tr("det blir T+1 imorgon"), tr("det blir en T imorgon"), always(reconcile.VerdictAlt)) + out := merge(t, tr("det blir A+2 imorgon"), tr("det blir en A imorgon"), always(reconcile.VerdictAlt)) require.Len(t, out.Reconciliation.Contested, 1) c := out.Reconciliation.Contested[0] - assert.Equal(t, "T+1", c.Base) - assert.Equal(t, "en T", c.Alt) + assert.Equal(t, "A+2", c.Base) + assert.Equal(t, "en A", c.Alt) assert.Equal(t, "alt", c.Used) assert.False(t, c.Unsure) } @@ -122,16 +122,16 @@ func TestReconcile_AWordOnlyTheBaseHeardCanBeRemoved(t *testing.T) { func TestReconcile_SeveralDisputesAreAppliedIndependentlyAndInOrder(t *testing.T) { adj := &scripted{fn: func(i int, r reconcile.Request) (reconcile.Verdict, error) { - if r.Alt == "omvårdade" || r.Alt == "SCB" { + if r.Alt == "mölade" || r.Alt == "Alex" { return reconcile.VerdictAlt, nil } return reconcile.VerdictBase, nil }} - out := merge(t, tr("kunderna onboardade nu och sen betalas till SEB via ombud med 1050 kronor"), - tr("kunderna omvårdade nu och sen betalas till SCB via ombud med 2050 kronor"), adj) + out := merge(t, tr("kunderna målade nu och sen betalas till Axel via ombud med 1050 kronor"), + tr("kunderna mölade nu och sen betalas till Alex via ombud med 2050 kronor"), adj) - assert.Equal(t, "kunderna omvårdade nu och sen betalas till SCB via ombud med 1050 kronor", out.Text) + assert.Equal(t, "kunderna mölade nu och sen betalas till Alex via ombud med 1050 kronor", out.Text) assert.Equal(t, 3, out.Reconciliation.Disputes) assert.Equal(t, 2, out.Reconciliation.Changed) }