Baglio Tabifata 5 years ago
parent
commit
fa9a1df0d0
1 changed files with 6 additions and 0 deletions
  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 java.util.Arrays;
+
 import org.junit.Test;
 
 import info.hkzlab.dupal.analyzer.devices.PAL16L8Specs;
@@ -63,6 +65,10 @@ public class FormattersTest {
             "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);
     }
 }