transfer.sh/vendor/github.com/skip2/go-qrcode/regular_symbol_test.go
2018-07-01 14:41:53 +02:00

31 lines
475 B
Go

// go-qrcode
// Copyright 2014 Tom Harwood
package qrcode
import (
"fmt"
"testing"
bitset "github.com/skip2/go-qrcode/bitset"
)
func TestBuildRegularSymbol(t *testing.T) {
for k := 0; k <= 7; k++ {
v := getQRCodeVersion(Low, 1)
data := bitset.New()
for i := 0; i < 26; i++ {
data.AppendNumBools(8, false)
}
s, err := buildRegularSymbol(*v, k, data)
if err != nil {
fmt.Println(err.Error())
} else {
_ = s
//fmt.Print(m.string())
}
}
}