Skip to content

Commit

Permalink
gofumpt generate_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed May 5, 2023
1 parent 3a1e927 commit 4c4dea5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions generate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@ import (
"encoding/base64"
"encoding/hex"
"fmt"
"os"
"strings"
"testing"

"os"

"github.com/ilius/bip39-coder/bip39"
"github.com/ilius/crock32"
"github.com/ilius/is/v2"
)

var verbose = os.Getenv("TEST_VERBOSE") == "1"
var bip39WordMap = getBIP39WordMap()
var (
verbose = os.Getenv("TEST_VERBOSE") == "1"
bip39WordMap = getBIP39WordMap()
)

func getBIP39WordMap() map[string]bool {
count := bip39.WordCount()
Expand Down Expand Up @@ -251,8 +252,8 @@ func TestGenerate(t *testing.T) {
testErr(&genErrCase{
Pattern: `test{100000,0000000a}`,
Error: ` ^^^^^^^^^^^^^^^ syntax error: invalid natural number inside {...}`,
//Error: ` ^^^^^^^^ syntax error: invalid natural number inside {...}`,
//FIXME
// Error: ` ^^^^^^^^ syntax error: invalid natural number inside {...}`,
// FIXME
})
//testErr(&genErrCase{
// Pattern: `(a|)`,
Expand Down

0 comments on commit 4c4dea5

Please sign in to comment.