Skip to content

Commit

Permalink
Revert Tests, product team rolled back changes, Auto Punctuation beha…
Browse files Browse the repository at this point in the history
…vior is back to the expected output (#1428)
  • Loading branch information
nnegrey authored May 21, 2019
1 parent b6dd6a7 commit 6272255
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6272255

Please sign in to comment.