hughlunnon
hughlunnon
it _is_ more intuitive but those two bigdecimals aren't equal according to the bigdecimal spec (BigDecimal("1.0")==BigDecimal("1") is false) due to the number of decimal spots. Changing "shouldBe" to return true...
> We do have matchers for `compareTo` > > * `shouldBeEqualComparingTo` > > Would this solve the issue for different scales? BigDecimal returns 0 for `BigDecimal("1.0").compareTo(BigDecimal("1")` > > So one...
Hi @SergiioDev - I'm afraid I can't remember - I've changed jobs since then so can't look through my old code to see what we did. Sorry!
ok I did a bit more digging. It seems this is [fixed in go 1.22](https://go.dev/wiki/LoopvarExperiment) but only if you have the go version specified in go.mod (which it is in...