blob: 9e274dbc36e403d24eaf47cb35f8b63589205757 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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())
}
}
}
|