more wod of day fixes

This commit is contained in:
Jacob Dubin
2026-04-18 17:15:49 -05:00
parent 2dac05462b
commit 93bb4ac3a5
13 changed files with 1505 additions and 24 deletions

View File

@@ -142,7 +142,29 @@ public sealed class JiboInteractionServiceTests
});
Assert.Equal("word_of_the_day", decision.IntentName);
Assert.Equal("Word of the day is ready.", decision.ReplyText);
Assert.Equal("Starting word of the day.", decision.ReplyText);
Assert.Equal("word-of-the-day", decision.SkillPayload!["destination"]);
}
[Fact]
public async Task BuildDecisionAsync_WordOfDayGuess_LineNumberUsesListenHints()
{
var service = CreateService();
var decision = await service.BuildDecisionAsync(new TurnContext
{
RawTranscript = "Two.",
NormalizedTranscript = "Two.",
Attributes = new Dictionary<string, object?>
{
["listenRules"] = new[] { "word-of-the-day/puzzle" },
["listenAsrHints"] = new[] { "doodad", "pastoral", "escarpment" }
}
});
Assert.Equal("word_of_the_day_guess", decision.IntentName);
Assert.Equal("I heard pastoral.", decision.ReplyText);
Assert.Equal("pastoral", decision.SkillPayload!["guess"]);
}
private static JiboInteractionService CreateService()