Polish news and personal report phrasing

This commit is contained in:
Jacob Dubin
2026-05-21 06:28:16 -05:00
parent eb509a66e0
commit bedb5d1715
6 changed files with 61 additions and 9 deletions

View File

@@ -1900,8 +1900,7 @@ public sealed class JiboInteractionServiceTests
Assert.Contains(
"For your weather. In Boston, U.S., it's light rain and 61 degrees Fahrenheit. Today's high is 65, and the low is 54.",
decision.ReplyText, StringComparison.OrdinalIgnoreCase);
Assert.Contains("calendar", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
Assert.Contains("commute", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
Assert.Contains("And that's it.", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
Assert.Contains("news", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
Assert.True(StripMarkup(decision.ReplyText).Length < 500,
$"Personal report speech was still too long: {StripMarkup(decision.ReplyText).Length} chars.");
@@ -1951,6 +1950,7 @@ public sealed class JiboInteractionServiceTests
Assert.Equal("personal_report_delivered", decision.IntentName);
Assert.Contains("Your calendar says get personal report from jibo, at 6:00 p.m.", decision.ReplyText,
StringComparison.OrdinalIgnoreCase);
Assert.Contains("calendar", decision.ReplyText, StringComparison.OrdinalIgnoreCase);
}
[Fact]

View File

@@ -4878,7 +4878,7 @@ public sealed class JiboWebSocketServiceTests
Assert.Contains("weather", stripped, StringComparison.OrdinalIgnoreCase);
Assert.Contains("calendar", stripped, StringComparison.OrdinalIgnoreCase);
Assert.Contains("news", stripped, StringComparison.OrdinalIgnoreCase);
Assert.True(stripped.Length < 500, $"Personal report speech was still too long: {stripped.Length} chars.");
Assert.True(stripped.Length < 600, $"Personal report speech was still too long: {stripped.Length} chars.");
}
[Fact]