From 3592e7747c1b8044cb320f6539861d1942cdac70 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 26 Jun 2025 12:30:44 +0300 Subject: [PATCH] add a test case with large decimal amount --- handlers/application/menuhandler_test.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/handlers/application/menuhandler_test.go b/handlers/application/menuhandler_test.go index a949e2c..f7a23ba 100644 --- a/handlers/application/menuhandler_test.go +++ b/handlers/application/menuhandler_test.go @@ -1686,6 +1686,14 @@ func TestValidateAmount(t *testing.T) { Content: "0.14", }, }, + { + name: "Test with valid large decimal amount", + input: []byte("1.8599999999"), + activeBal: []byte("5"), + expectedResult: resource.Result{ + Content: "1.85", + }, + }, } for _, tt := range tests {