From 7109b5e7dd41e5f83d0e5839896830a732f958a8 Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Thu, 13 Sep 2018 21:57:53 +0300 Subject: [PATCH] any_tests: remove commented-out code Found using https://go-critic.github.io/overview#commentedOutCode-ref --- any_tests/jsoniter_any_float_test.go | 2 -- any_tests/jsoniter_any_object_test.go | 2 -- 2 files changed, 4 deletions(-) diff --git a/any_tests/jsoniter_any_float_test.go b/any_tests/jsoniter_any_float_test.go index 4426e35..5e70598 100644 --- a/any_tests/jsoniter_any_float_test.go +++ b/any_tests/jsoniter_any_float_test.go @@ -82,10 +82,8 @@ func Test_read_float_to_any(t *testing.T) { should := require.New(t) any := jsoniter.WrapFloat64(12.3) anyFloat64 := float64(12.3) - //negaAnyFloat64 := float64(-1.1) any2 := jsoniter.WrapFloat64(-1.1) should.Equal(float64(12.3), any.ToFloat64()) - //should.Equal("12.3", any.ToString()) should.True(any.ToBool()) should.Equal(float32(anyFloat64), any.ToFloat32()) should.Equal(int(anyFloat64), any.ToInt()) diff --git a/any_tests/jsoniter_any_object_test.go b/any_tests/jsoniter_any_object_test.go index a36f6ca..5af292d 100644 --- a/any_tests/jsoniter_any_object_test.go +++ b/any_tests/jsoniter_any_object_test.go @@ -118,6 +118,4 @@ func Test_object_wrapper_any_get_all(t *testing.T) { should.Contains(any.Keys(), "Field1") should.Contains(any.Keys(), "Field2") should.NotContains(any.Keys(), "Field3") - - //should.Contains(any.GetObject()["Field1"].GetArray()[0], 1) }