Преглед изворни кода

Merge macExcel_test.go and googleDocsExcel_test.go into compatibility_test.go

Geoffrey J. Teale пре 11 година
родитељ
комит
58fe53d496
2 измењених фајлова са 13 додато и 18 уклоњено
  1. 13 3
      compatibility_test.go
  2. 0 15
      googleDocsExcel_test.go

+ 13 - 3
macExcel_test.go → compatibility_test.go

@@ -1,8 +1,18 @@
 package xlsx
 package xlsx
 
 
-import (
-	. "gopkg.in/check.v1"
-)
+import . "gopkg.in/check.v1"
+
+type GoogleDocsExcelSuite struct{}
+
+var _ = Suite(&GoogleDocsExcelSuite{})
+
+// Test that we can successfully read an XLSX file generated by
+// Google Docs.
+func (g *GoogleDocsExcelSuite) TestGoogleDocsExcel(c *C) {
+	xlsxFile, err := OpenFile("./testdocs/googleDocsTest.xlsx")
+	c.Assert(err, IsNil)
+	c.Assert(xlsxFile, NotNil)
+}
 
 
 type MacExcelSuite struct{}
 type MacExcelSuite struct{}
 
 

+ 0 - 15
googleDocsExcel_test.go

@@ -1,15 +0,0 @@
-package xlsx
-
-import . "gopkg.in/check.v1"
-
-type GoogleDocsExcelSuite struct{}
-
-var _ = Suite(&GoogleDocsExcelSuite{})
-
-// Test that we can successfully read an XLSX file generated by
-// Google Docs.
-func (g *GoogleDocsExcelSuite) TestGoogleDocsExcel(c *C) {
-	xlsxFile, err := OpenFile("./testdocs/googleDocsTest.xlsx")
-	c.Assert(err, IsNil)
-	c.Assert(xlsxFile, NotNil)
-}