12345678910111213141516171819202122232425262728293031 |
- // 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())
- }
- }
- }
|