Baglio Tabifata 5 年之前
父节点
当前提交
fa9a1df0d0
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6 0
      src/test/java/info/hkzlab/dupal/analyzer/FormattersTest.java

+ 6 - 0
src/test/java/info/hkzlab/dupal/analyzer/FormattersTest.java

@@ -2,6 +2,8 @@ package info.hkzlab.dupal.analyzer;
 
 
 import static org.junit.Assert.*;
 import static org.junit.Assert.*;
 
 
+import java.util.Arrays;
+
 import org.junit.Test;
 import org.junit.Test;
 
 
 import info.hkzlab.dupal.analyzer.devices.PAL16L8Specs;
 import info.hkzlab.dupal.analyzer.devices.PAL16L8Specs;
@@ -63,6 +65,10 @@ public class FormattersTest {
             "0010000000000000 0110-00001\n",
             "0010000000000000 0110-00001\n",
         };
         };
 
 
+        // Sort them, as we cannot guarantee the order of the formatted espresso table
+        Arrays.sort(expected);
+        Arrays.sort(rows);
+
         assertArrayEquals("EspressoFormatter should build the correct truth table for specified states", expected, rows);
         assertArrayEquals("EspressoFormatter should build the correct truth table for specified states", expected, rows);
     }
     }
 }
 }