mirror of
https://github.com/dutchcoders/transfer.sh.git
synced 2024-12-11 21:30:19 +01:00
32 lines
475 B
Go
32 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())
|
||
|
}
|
||
|
}
|
||
|
}
|