aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:27:14 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-01 21:27:14 +0800
commit0ce971d9d396521697b56efeb60e28fe40bd0015 (patch)
tree0f23981df1116936ab7c0c0366f861ae3ada48e2
parent101ea1a1e8e8f7b0592dbd06e4eca8432e2e2527 (diff)
downloadgo-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar.gz
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar.bz2
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar.lz
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar.xz
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.tar.zst
go-tangerine-0ce971d9d396521697b56efeb60e28fe40bd0015.zip
Add new formatting regex
-rw-r--r--rpc/responses_test.go13
1 files changed, 7 insertions, 6 deletions
diff --git a/rpc/responses_test.go b/rpc/responses_test.go
index 43924151a..20bc8e97d 100644
--- a/rpc/responses_test.go
+++ b/rpc/responses_test.go
@@ -13,12 +13,13 @@ import (
)
const (
- reHash = `"0x[0-9a-f]{64}"` // 32 bytes
- reHashOpt = `"(0x[0-9a-f]{64})"|null` // 32 bytes or null
- reAddress = `"0x[0-9a-f]{40}"` // 20 bytes
- reAddressOpt = `"0x[0-9a-f]{40}"|null` // 20 bytes or null
- reNum = `"0x([1-9a-f][0-9a-f]{1,15})|0"` // must not have left-padded zeros
- reData = `"0x[0-9a-f]*"` // can be "empty"
+ reHash = `"0x[0-9a-f]{64}"` // 32 bytes
+ reHashOpt = `"(0x[0-9a-f]{64})"|null` // 32 bytes or null
+ reAddress = `"0x[0-9a-f]{40}"` // 20 bytes
+ reAddressOpt = `"0x[0-9a-f]{40}"|null` // 20 bytes or null
+ reNum = `"0x([1-9a-f][0-9a-f]{0,15})|0"` // must not have left-padded zeros
+ reNumOpt = `"0x([1-9a-f][0-9a-f]{0,15})|0"|null` // must not have left-padded zeros or null
+ reData = `"0x[0-9a-f]*"` // can be "empty"
)
func TestNewBlockRes(t *testing.T) {