Restore stable replies after cognitive routing
This commit is contained in:
@@ -53,6 +53,13 @@ func TestInterpretUtteranceThanksHasNaturalConversationalReply(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestStableConversationalReplySurvivesCognitiveRewrite(t *testing.T) {
|
||||
reply, stable := StableConversationalReply("спасибо", interaction.SpeechActConversational)
|
||||
if !stable || reply != "Пожалуйста." {
|
||||
t.Fatalf("unexpected stable conversational reply: stable=%t reply=%q", stable, reply)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInterpretUtteranceDirectiveRecordsOutcomeWithoutExecution(t *testing.T) {
|
||||
result := interpretForTest(t, "Поменяй базу на УПО1.", activeFocus("upo", "УПО"), "")
|
||||
if result.Interpretation.SpeechAct != interaction.SpeechActDirective {
|
||||
|
||||
Reference in New Issue
Block a user