Skip to content
Browse files

Add test case to diff xls and odf numeric + formula.

  • Loading branch information...
1 parent 77d32f8 commit 9a3eb3e1ee77d84dbf6b9fd5c3b8ddfa0021a78f @na-ka-na committed
View
7 test/com/ka/spreadsheet/diff/SpreadSheetDifferSmokeTest.java
@@ -49,10 +49,15 @@ public static void main(String[] args) throws Exception {
null,
new File("test/resources/bad_file.err"));
testDiff(
- "Numeric and formula",
+ "Numeric and formula xls xlsx",
new String[]{"test/resources/numeric_and_formula.xls", "test/resources/numeric_and_formula.xlsx"},
new File("test/resources/numeric_and_formula.xls.xlsx.out"),
null);
+ testDiff(
+ "Numeric and formula xls odf",
+ new String[]{"test/resources/numeric_and_formula.xls", "test/resources/numeric_and_formula.ods"},
+ new File("test/resources/numeric_and_formula.xls.ods.out"),
+ null);
System.out.println("All tests pass");
}
View
BIN test/resources/numeric_and_formula.ods
Binary file not shown.
View
18 test/resources/numeric_and_formula.xls.ods.out
@@ -0,0 +1,18 @@
+EXTRA Cell in WB2 Sheet1!A1 => ''
+EXTRA Cell in WB2 Sheet1!B1 => ''
+DIFF Cell at Sheet1!B2 => 'A2+1' v/s 'of:=[.A2]+1'
+DIFF Cell at Sheet1!B3 => 'A3+1' v/s 'of:=[.A3]+1'
+----------------- DIFF -------------------
+Sheets: [Sheet1]
+Rows: [2, 3]
+Cols: [B]
+----------------- EXTRA WB1 -------------------
+Sheets: []
+Rows: []
+Cols: []
+----------------- EXTRA WB2 -------------------
+Sheets: [Sheet1]
+Rows: [1]
+Cols: [A, B]
+-----------------------------------------
+Excel files test/resources/numeric_and_formula.xls and test/resources/numeric_and_formula.ods differ

0 comments on commit 9a3eb3e

Please sign in to comment.
Something went wrong with that request. Please try again.