QR code, html5 player

This commit is contained in:
Andrea Spacca
2018-07-01 13:51:13 +02:00
parent b31e6acd71
commit 99bb2a6118
27 changed files with 9469 additions and 1325 deletions

View File

@@ -0,0 +1,31 @@
// 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())
}
}
}