Fix translate integ test
Evidently the translation of "good day" into German changed from "guten
tag" to "guter tag". Also evidently the Translate service will happily
translate from one language into the same language. It seems less
unlikely that the translation of "good day" into English will be
something other than "good day".
@@ -7,15 +7,15 @@ use rusoto_core::Region;
use rusoto_translate::{Translate, TranslateClient, TranslateTextRequest};
#[tokio::test]
-async fn should_translate_to_german() {
+async fn should_translate() {
let client = TranslateClient::new(Region::UsEast1);
let request = TranslateTextRequest {
source_language_code: "en".to_owned(),
- target_language_code: "de".to_owned(),
+ target_language_code: "en".to_owned(),
text: "good day".to_owned(),
..Default::default()
};
let result = client.translate_text(request).await.unwrap();
- assert_eq!("guten tag", result.translated_text.to_lowercase());
+ assert_eq!("good day", result.translated_text.to_lowercase());
}
