Skip to content

Commit c44ac8f

Browse files
committed
Normalize spelling
1 parent 85d377f commit c44ac8f

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

src/test/java/org/apache/commons/codec/digest/Apr1CryptTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ public void testApr1CryptBytes() {
5252

5353
// An empty Bytearray equals an empty String
5454
assertEquals("$apr1$foo$P27KyD1htb4EllIPEYhqi0", Md5Crypt.apr1Crypt(new byte[0], "$apr1$foo"));
55-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
55+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
5656
assertEquals("$apr1$./$EeFrYzWWbmTyGdf4xULYc.", Md5Crypt.apr1Crypt("t\u00e4st", "$apr1$./$"));
57-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
57+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
5858
assertEquals("$apr1$./$kCwT1pY9qXAJElYG9q1QE1", Md5Crypt.apr1Crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "$apr1$./$"));
5959
}
6060

@@ -68,9 +68,9 @@ public void testApr1CryptBytesWithThreadLocalRandom() {
6868

6969
// An empty Bytearray equals an empty String
7070
assertEquals("$apr1$foo$P27KyD1htb4EllIPEYhqi0", Md5Crypt.apr1Crypt(new byte[0], "$apr1$foo"));
71-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
71+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
7272
assertEquals("$apr1$./$EeFrYzWWbmTyGdf4xULYc.", Md5Crypt.apr1Crypt("t\u00e4st", "$apr1$./$"));
73-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
73+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
7474
assertEquals("$apr1$./$kCwT1pY9qXAJElYG9q1QE1", Md5Crypt.apr1Crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "$apr1$./$"));
7575
}
7676

src/test/java/org/apache/commons/codec/digest/Md5CryptTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public void testMd5CryptStrings() {
5050
public void testMd5CryptBytes() {
5151
// An empty Bytearray equals an empty String
5252
assertEquals("$1$foo$9mS5ExwgIECGE5YKlD5o91", Crypt.crypt(new byte[0], "$1$foo"));
53-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
53+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
5454
assertEquals("$1$./$52agTEQZs877L9jyJnCNZ1", Crypt.crypt("t\u00e4st", "$1$./$"));
55-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
55+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
5656
assertEquals("$1$./$J2UbKzGe0Cpe63WZAt6p//", Crypt.crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "$1$./$"));
5757
}
5858

src/test/java/org/apache/commons/codec/digest/Sha256CryptTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ public void testSha256CryptStrings() {
4545
public void testSha256CryptBytes() {
4646
// An empty Bytearray equals an empty String
4747
assertEquals("$5$foo$Fq9CX624QIfnCAmlGiPKLlAasdacKCRxZztPoeo7o0B", Crypt.crypt(new byte[0], "$5$foo"));
48-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
48+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
4949
assertEquals("$5$./$iH66LwY5sTDTdHeOxq5nvNDVAxuoCcyH/y6Ptte82P8", Crypt.crypt("t\u00e4st", "$5$./$"));
50-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
50+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
5151
assertEquals("$5$./$qx5gFfCzjuWUOvsDDy.5Nor3UULPIqLVBZhgGNS0c14", Crypt.crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "$5$./$"));
5252
}
5353

src/test/java/org/apache/commons/codec/digest/Sha512CryptTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public void testSha512CryptStrings() {
4646
public void testSha512CryptBytes() {
4747
// An empty Bytearray equals an empty String
4848
assertEquals("$6$foo$Nywkte7LPWjaJhWjNeGJN.dFdY3pN1wYlGifyRLYOVlGS9EMSiZaDDe/BGSOYQ327q9.32I4UqQ5odsqvsBLX/", Crypt.crypt(new byte[0], "$6$foo"));
49-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
49+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
5050
assertEquals("$6$./$fKtWqslQkwI8ZxjdWoeS.jHHrte97bZxiwB5gwCRHX6LG62fUhT6Bb5MRrjWvieh0C/gxh8ItFuTsVy80VrED1", Crypt.crypt("t\u00e4st", "$6$./$"));
51-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
51+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
5252
assertEquals("$6$./$L49DSK.d2df/LxGLJQMyS5A/Um.TdHqgc46j5FpScEPlqQHP5dEazltaDNDZ6UEs2mmNI6kPwtH/rsP9g5zBI.", Crypt.crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "$6$./$"));
5353
}
5454

src/test/java/org/apache/commons/codec/digest/UnixCryptTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ public void testUnixCryptStrings() {
4848
public void testUnixCryptBytes() {
4949
// An empty Bytearray equals an empty String
5050
assertEquals("12UFlHxel6uMM", Crypt.crypt(new byte[0], "12"));
51-
// UTF-8 stores \u00e4 "a with diaeresis" as two bytes 0xc3 0xa4.
51+
// UTF-8 stores \u00e4 "a with dieresis" as two bytes 0xc3 0xa4.
5252
assertEquals("./287bds2PjVw", Crypt.crypt("t\u00e4st", "./"));
53-
// ISO-8859-1 stores "a with diaeresis" as single byte 0xe4.
53+
// ISO-8859-1 stores "a with dieresis" as single byte 0xe4.
5454
assertEquals("./bLIFNqo9XKQ", Crypt.crypt("t\u00e4st".getBytes(StandardCharsets.ISO_8859_1), "./"));
5555
assertEquals("./bLIFNqo9XKQ", Crypt.crypt(new byte[]{(byte) 0x74, (byte) 0xe4, (byte) 0x73, (byte) 0x74}, "./"));
5656
}

0 commit comments

Comments
 (0)