add more tests

add network capability to example app
This commit is contained in:
Simon Waldherr
2018-11-06 17:09:56 +01:00
parent ab40a41cfa
commit 798fa421de
13 changed files with 167 additions and 60 deletions

View File

@@ -76,15 +76,15 @@ func Test_ConvertToZPL(t *testing.T) {
default:
graphicType = CompressedASCII
}
gfimg := ConvertToZPL(flat, graphicType)
// remove whitespace - only for the test
gfimg = strings.Replace(gfimg, " ", "", -1)
gfimg = strings.Replace(gfimg, "\n", "", -1)
switch graphictype {
case "Binary":
if graphictype == "Binary" {
gfimg = base64.StdEncoding.EncodeToString([]byte(gfimg))
} else {
// remove whitespace - only for the test
gfimg = strings.Replace(gfimg, " ", "", -1)
gfimg = strings.Replace(gfimg, "\n", "", -1)
}
if gfimg != zplstring {