Skip to content

Commit 3e4faba

Browse files
Merge pull request GoogleCloudPlatform#757 from SurferJeffAtGoogle/fixTranslationTest
Fix fragile translation test.
2 parents 52164c7 + c2fecf7 commit 3e4faba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translate/test/quickstartTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ public function testQuickstart()
4343
$this->assertArrayHasKey('text', $translation);
4444
$this->assertEquals('en', $translation['source']);
4545
$this->assertEquals('Hello, world!', $translation['input']);
46-
$this->assertEquals('Привет мир!', $translation['text']);
46+
$this->assertContains('мир', $translation['text']);
4747
}
4848
}

0 commit comments

Comments
 (0)