add a test case with large decimal amount

This commit is contained in:
Alfred Kamanda 2025-06-26 12:30:44 +03:00
parent 7fe40faa9d
commit 3592e7747c
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -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 {