Browse Source

Add fuzzy build tag.

Geoffrey J. Teale 10 years ago
parent
commit
5c8c7efdb4
1 changed files with 5 additions and 2 deletions
  1. 5 2
      fuzzy_test.go

+ 5 - 2
fuzzy_test.go

@@ -1,3 +1,5 @@
+// +build fuzzy
+
 package xlsx
 
 import (
@@ -6,7 +8,6 @@ import (
 	"encoding/xml"
 	"flag"
 	"fmt"
-	. "gopkg.in/check.v1"
 	"io"
 	"log"
 	"math/rand"
@@ -15,6 +16,8 @@ import (
 	"strconv"
 	"testing"
 	"time"
+
+	. "gopkg.in/check.v1"
 )
 
 type Fuzzy struct{}
@@ -214,7 +217,7 @@ func (f *Fuzzy) TestRandomBrokenParts(c *C) {
 		c.Log("This test, tests many versions of an xlsx file and might take a while, it is being skipped")
 		c.SucceedNow()
 	}
-	log.Println("Fuzzy test is using this -test.seed="+strconv.FormatInt(*randseed,10))
+	log.Println("Fuzzy test is using this -test.seed=" + strconv.FormatInt(*randseed, 10))
 	rand.Seed(*randseed)
 	template, err := zip.OpenReader("./testdocs/testfile.xlsx")
 	c.Assert(err, IsNil)