Problem
The fromStroops function accepts a bigint parameter, but math.test.ts only currently asserts against string inputs.
Expected behavior
The test suite includes assertions verifying that native JavaScript BigInt objects passed into fromStroops correctly convert into decimal strings without precision loss.
Files to update
Project relevance
Soroban i128 values return as BigInts via the XDR parser; testing this integration directly secures the math pipeline against rounding bugs.
Acceptance criteria
Problem
The
fromStroopsfunction accepts abigintparameter, butmath.test.tsonly currently asserts against string inputs.Expected behavior
The test suite includes assertions verifying that native JavaScript
BigIntobjects passed intofromStroopscorrectly convert into decimal strings without precision loss.Files to update
tests/math.test.tsProject relevance
Soroban i128 values return as BigInts via the XDR parser; testing this integration directly secures the math pipeline against rounding bugs.
Acceptance criteria
expect(fromStroops(105000000n)).toBe("10.5000000")or equivalent BigInt assertion is added