diff options
| author | Felix Hanley <felix@userspace.com.au> | 2017-03-19 15:19:42 +0000 |
|---|---|---|
| committer | Felix Hanley <felix@userspace.com.au> | 2017-03-19 15:19:42 +0000 |
| commit | 8a541d499b6f117cd3a81e475ee779ba60fc0637 (patch) | |
| tree | 7b3b5326235725ab93056b5ff4637d987fb0a7b6 /vendor/github.com/skip2/go-qrcode/regular_symbol_test.go | |
| parent | fe847b2d01060044274d20d2c35ae01a684d4ee3 (diff) | |
| download | crjw-maps-8a541d499b6f117cd3a81e475ee779ba60fc0637.tar.gz crjw-maps-8a541d499b6f117cd3a81e475ee779ba60fc0637.tar.bz2 | |
Diffstat (limited to 'vendor/github.com/skip2/go-qrcode/regular_symbol_test.go')
| -rw-r--r-- | vendor/github.com/skip2/go-qrcode/regular_symbol_test.go | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/vendor/github.com/skip2/go-qrcode/regular_symbol_test.go b/vendor/github.com/skip2/go-qrcode/regular_symbol_test.go new file mode 100644 index 0000000..9e274db --- /dev/null +++ b/vendor/github.com/skip2/go-qrcode/regular_symbol_test.go @@ -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()) + } + } +} |
