diff options
author | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-28 20:47:17 +0200 |
---|---|---|
committer | Aliaksandr Valialkin <valyala@gmail.com> | 2015-11-28 20:47:17 +0200 |
commit | 58d404c7e9ebfeccf90c988d28490188ae2288c2 (patch) | |
tree | 245d6d45a3c14992f4875d237463595aa86eefcd /bytesconv_64_test.go | |
parent | Removed flackiness from Logger tests by skipping request duration (diff) | |
download | fasthttp-58d404c7e9ebfeccf90c988d28490188ae2288c2.tar.gz fasthttp-58d404c7e9ebfeccf90c988d28490188ae2288c2.tar.bz2 fasthttp-58d404c7e9ebfeccf90c988d28490188ae2288c2.zip |
Issue #7: an attempt to blindly fix arm build according to @msoap suggestion
Diffstat (limited to 'bytesconv_64_test.go')
-rw-r--r-- | bytesconv_64_test.go | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/bytesconv_64_test.go b/bytesconv_64_test.go new file mode 100644 index 0000000..eacc686 --- /dev/null +++ b/bytesconv_64_test.go @@ -0,0 +1,24 @@ +// +build amd64 + +package fasthttp + +import ( + "testing" +) + +func TestReadHexIntSuccess(t *testing.T) { + testReadHexIntSuccess(t, "0", 0) + testReadHexIntSuccess(t, "fF", 0xff) + testReadHexIntSuccess(t, "00abc", 0xabc) + testReadHexIntSuccess(t, "7fffffff", 0x7fffffff) + testReadHexIntSuccess(t, "000", 0) + testReadHexIntSuccess(t, "1234ZZZ", 0x1234) + testReadHexIntSuccess(t, "7ffffffffffffff", 0x7ffffffffffffff) +} + +func TestParseUintSuccess(t *testing.T) { + testParseUintSuccess(t, "0", 0) + testParseUintSuccess(t, "123", 123) + testParseUintSuccess(t, "1234567890", 1234567890) + testParseUintSuccess(t, "123456789012345678", 123456789012345678) +} |