mirror of
https://github.com/google/brotli.git
synced 2026-09-22 14:45:51 +00:00
fix typos
PiperOrigin-RevId: 815676548
This commit is contained in:
committed by
Copybara-Service
parent
b3142143f6
commit
34e43eb020
@@ -85,6 +85,7 @@ public class DecodeTest {
|
||||
|
||||
@Test
|
||||
public void testUkkonooa() throws IOException {
|
||||
// typo:off
|
||||
checkDecodeResource(
|
||||
"ukko nooa, ukko nooa oli kunnon mies, kun han meni saunaan, "
|
||||
+ "pisti laukun naulaan, ukko nooa, ukko nooa oli kunnon mies.",
|
||||
@@ -92,6 +93,7 @@ public class DecodeTest {
|
||||
+ "6\u000E\u009C\u00E0\u0090\u0003\u00F7\u008B\u009E8\u00E6\u00B6\u0000\u00AB\u00C3\u00CA"
|
||||
+ "\u00A0\u00C2\u00DAf6\u00DC\u00CD\u0080\u008D.!\u00D7n\u00E3\u00EAL\u00B8\u00F0\u00D2"
|
||||
+ "\u00B8\u00C7\u00C2pM:\u00F0i~\u00A1\u00B8Es\u00AB\u00C4W\u001E");
|
||||
// typo:on
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -283,6 +283,7 @@ public class SynthTest {
|
||||
*/
|
||||
compressed,
|
||||
true,
|
||||
// typo:off
|
||||
"|categories|categories | categories |ategories|Categories |categories the | categories|s cat"
|
||||
+ "egories |categories of |Categories|categories and |tegories|categorie|, categories |catego"
|
||||
+ "ries, | Categories |categories in |categories to |e categories |categories\"|categories.|c"
|
||||
@@ -301,6 +302,7 @@ public class SynthTest {
|
||||
+ "\"|categoriesous |CATEGORIES, |Categories='| Categories,| CATEGORIES=\"| CATEGORIES, |CATE"
|
||||
+ "GORIES,|CATEGORIES(|CATEGORIES. | CATEGORIES.|CATEGORIES='| CATEGORIES. | Categories=\"| C"
|
||||
+ "ATEGORIES='| Categories='"
|
||||
// typo:on
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,7 @@ final class Transform {
|
||||
private static final int SHIFT_ALL = SHIFT_FIRST + 1;
|
||||
|
||||
// Bundle of 0-terminated strings.
|
||||
// typo:off
|
||||
private static final String PREFIX_SUFFIX_SRC = "# #s #, #e #.# the #.com/#\u00C2\u00A0# of # and"
|
||||
+ " # in # to #\"#\">#\n#]# for # a # that #. # with #'# from # by #. The # on # as # is #ing"
|
||||
+ " #\n\t#:#ed #(# at #ly #=\"# of the #. This #,# not #er #al #='#ful #ive #less #est #ize #"
|
||||
@@ -73,6 +74,7 @@ final class Transform {
|
||||
+ " ; < ' != > ?! 4 @ 4 2 & A *# ( B C& ) % ) !*# *-% A +! *. D! %' & E *6 F "
|
||||
+ " G% ! *A *% H! D I!+! J!+ K +- *4! A L!*4 M N +6 O!*% +.! K *G P +%( ! G *D +D "
|
||||
+ " Q +# *K!*G!+D!+# +G +A +4!+% +K!+4!*D!+K!*K";
|
||||
// typo:on
|
||||
|
||||
private static void unpackTransforms(byte[] prefixSuffix,
|
||||
int[] prefixSuffixHeads, int[] transforms, String prefixSuffixSrc, String transformsSrc) {
|
||||
|
||||
@@ -42,8 +42,8 @@ public class BrotliEncoderChannelTest extends BrotliJniTestBase {
|
||||
try {
|
||||
List<String> entries = BundleHelper.listEntries(bundle);
|
||||
for (String entry : entries) {
|
||||
suite.addTest(new ChannleTestCase(entry, TestMode.WRITE_ALL));
|
||||
suite.addTest(new ChannleTestCase(entry, TestMode.WRITE_CHUNKS));
|
||||
suite.addTest(new ChannelTestCase(entry, TestMode.WRITE_ALL));
|
||||
suite.addTest(new ChannelTestCase(entry, TestMode.WRITE_CHUNKS));
|
||||
}
|
||||
} finally {
|
||||
bundle.close();
|
||||
@@ -52,10 +52,10 @@ public class BrotliEncoderChannelTest extends BrotliJniTestBase {
|
||||
}
|
||||
|
||||
/** Test case with a unique name. */
|
||||
static class ChannleTestCase extends TestCase {
|
||||
static class ChannelTestCase extends TestCase {
|
||||
final String entryName;
|
||||
final TestMode mode;
|
||||
ChannleTestCase(String entryName, TestMode mode) {
|
||||
ChannelTestCase(String entryName, TestMode mode) {
|
||||
super("BrotliEncoderChannelTest." + entryName + "." + mode.name());
|
||||
this.entryName = entryName;
|
||||
this.mode = mode;
|
||||
|
||||
Reference in New Issue
Block a user