From 4b3807cb993a8787bc3340403af0bedec584374f Mon Sep 17 00:00:00 2001 From: Amogh-Bharadwaj Date: Wed, 22 May 2024 18:41:57 +0530 Subject: [PATCH] adjust test --- flow/datatypes/bigint_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/flow/datatypes/bigint_test.go b/flow/datatypes/bigint_test.go index b1b87180b7..43d386ebb8 100644 --- a/flow/datatypes/bigint_test.go +++ b/flow/datatypes/bigint_test.go @@ -6,15 +6,15 @@ import ( ) func TestCountDigits(t *testing.T) { - bi := big.NewInt(1234567890) - expected := 10 + bi := big.NewInt(-0) + expected := 1 result := CountDigits(bi) if result != expected { t.Errorf("Unexpected result. Expected: %v, but got: %v", expected, result) } - bi = big.NewInt(-1234567890) - expected = 10 + bi = big.NewInt(0) + expected = 1 result = CountDigits(bi) if result != expected { t.Errorf("Unexpected result. Expected: %v, but got: %v", expected, result)