Skip to content

Commit

Permalink
[JENKINS-45436] I know Java source is unicode, but let's be ultra saf…
Browse files Browse the repository at this point in the history
…e in tests
  • Loading branch information
stephenc committed Jul 11, 2017
1 parent ef9f853 commit 54f70c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/test/java/jenkins/scm/api/SCMNameTest.java
Expand Up @@ -53,7 +53,8 @@ public void given__url_with_hostname__when__naming__then__prefix_is_removed() th

@Test
public void given__url_with_punycode__when__naming__then__hostname_is_decoded() throws Exception {
assertThat(SCMName.fromUrl("http://xn--e1afmkfd.xn--p1ai/"), is("пример"));
assertThat(SCMName.fromUrl("http://xn--e1afmkfd.xn--p1ai/"),
is("\u043F\u0440\u0438\u043C\u0435\u0440" /*пример*/));
}

@Test
Expand Down

0 comments on commit 54f70c0

Please sign in to comment.