Skip to content

Commit

Permalink
vote_test - fix not special case
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitprincess committed Jun 13, 2023
1 parent fad8cf2 commit 3c2e310
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions types/vote_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package types

import "testing"
import (
"testing"
)

func TestIsSpecialAccount(t *testing.T) {
tests := []struct {
Expand All @@ -11,8 +13,8 @@ func TestIsSpecialAccount(t *testing.T) {
{"TAergoName", []byte("aergo.name"), true},
{"TAergoEnterprise", []byte("aergo.enterprise"), true},
{"TAergoVault", []byte("aergo.vault"), true},
{"TNormal", []byte("user0000007"), false},
{"TInvalid", []byte("ks.lee"), false},
{"TNormal", []byte("user10000007"), false},
{"TInvalid", []byte("user.2"), false},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
Expand Down

0 comments on commit 3c2e310

Please sign in to comment.