File: remove_odd_test.patch

package info (click to toggle)
libjuniversalchardet-java 1.0.3-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 876 kB
  • sloc: java: 5,390; xml: 101; sh: 18; makefile: 9
file content (37 lines) | stat: -rw-r--r-- 1,127 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/src/org/mozilla/universalchardet/prober/statemachine/PkgIntTest.java b/src/org/mozilla/universalchardet/prober/statemachine/PkgIntTest.java
deleted file mode 100644
index 3c46cf4..0000000
--- a/src/org/mozilla/universalchardet/prober/statemachine/PkgIntTest.java
+++ /dev/null
@@ -1,31 +0,0 @@
-package org.mozilla.universalchardet.prober.statemachine;
-
-import static org.junit.Assert.*;
-
-import org.junit.Test;
-
-public class PkgIntTest
-{
-    @Test
-    public void testUnpack()
-    {
-        int[] data = new int[] {
-                PkgInt.pack4bits(0, 1, 2, 3, 4, 5, 6, 7),
-                PkgInt.pack4bits(8, 9, 10, 11, 12, 13, 14, 15)
-        };
-        
-        PkgInt pkg = new PkgInt(
-                PkgInt.INDEX_SHIFT_4BITS,
-                PkgInt.SHIFT_MASK_4BITS,
-                PkgInt.BIT_SHIFT_4BITS,
-                PkgInt.UNIT_MASK_4BITS,
-                data);
-
-        for (int i=0; i<16; ++i) {
-            int n = pkg.unpack(i);
-            if (n != i) {
-                fail("Invalid packed value.");
-            }
-        }
-    }
-}