Skip to content

Commit 6272255

Browse files
authored
Revert Tests, product team rolled back changes, Auto Punctuation behavior is back to the expected output (#1428)
1 parent b6dd6a7 commit 6272255

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

speech/cloud-client/src/test/java/com/example/speech/RecognizeIT.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,22 @@ public void testStreamRecognize() throws Exception {
113113
@Test
114114
public void testAutoPunctuation() throws Exception {
115115
Recognize.transcribeFileWithAutomaticPunctuation(audioFileName);
116-
String got = bout.toString().toLowerCase();
117-
assertThat(got).contains("how old is the brooklyn bridge");
116+
String got = bout.toString();
117+
assertThat(got).contains("How old is the Brooklyn Bridge?");
118118
}
119119

120120
@Test
121121
public void testGcsAutoPunctuation() throws Exception {
122122
Recognize.transcribeGcsWithAutomaticPunctuation(gcsAudioPath);
123-
String got = bout.toString().toLowerCase();
124-
assertThat(got).contains("how old is the brooklyn bridge");
123+
String got = bout.toString();
124+
assertThat(got).contains("How old is the Brooklyn Bridge?");
125125
}
126126

127127
@Test
128128
public void testStreamAutoPunctuation() throws Exception {
129129
Recognize.streamingTranscribeWithAutomaticPunctuation(audioFileName);
130-
String got = bout.toString().toLowerCase();
131-
assertThat(got).contains("how old is the brooklyn bridge");
130+
String got = bout.toString();
131+
assertThat(got).contains("How old is the Brooklyn Bridge?");
132132
}
133133

134134
@Test

0 commit comments

Comments
 (0)