From 5329386cc56e2248a66dcd25d4d8d93039e7d195 Mon Sep 17 00:00:00 2001 From: nnegrey Date: Tue, 21 May 2019 09:54:18 -0700 Subject: [PATCH] Revert Tests, product team rolled back changes, Auto Punctuation behavior is back to the expected output --- .../test/java/com/example/speech/RecognizeIT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java b/speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java index 0aa8db5d2ca..2eef6f05807 100644 --- a/speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java +++ b/speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java @@ -113,22 +113,22 @@ public void testStreamRecognize() throws Exception { @Test public void testAutoPunctuation() throws Exception { Recognize.transcribeFileWithAutomaticPunctuation(audioFileName); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test public void testGcsAutoPunctuation() throws Exception { Recognize.transcribeGcsWithAutomaticPunctuation(gcsAudioPath); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test public void testStreamAutoPunctuation() throws Exception { Recognize.streamingTranscribeWithAutomaticPunctuation(audioFileName); - String got = bout.toString().toLowerCase(); - assertThat(got).contains("how old is the brooklyn bridge"); + String got = bout.toString(); + assertThat(got).contains("How old is the Brooklyn Bridge?"); } @Test