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_32_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_32_test.go')
-rw-r--r-- | bytesconv_32_test.go | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/bytesconv_32_test.go b/bytesconv_32_test.go new file mode 100644 index 0000000..d660096 --- /dev/null +++ b/bytesconv_32_test.go @@ -0,0 +1,22 @@ +// +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, "7ffffff", 0x7ffffff) + testReadHexIntSuccess(t, "000", 0) + testReadHexIntSuccess(t, "1234ZZZ", 0x1234) +} + +func TestParseUintSuccess(t *testing.T) { + testParseUintSuccess(t, "0", 0) + testParseUintSuccess(t, "123", 123) + testParseUintSuccess(t, "123456789", 123456789) +} |