oscbyspro / Ultimathnum

Binary arithmetic reimagined in Swift
Apache License 2.0
9 stars 1 forks source link

Unified: BinaryInteger testing #108

Closed oscbyspro closed 3 weeks ago

oscbyspro commented 1 month ago

I want to test all binary integers in a single place because maintaining multiple testing strategies is just too much work. I'm happy with the fuzzing approach, so I'll focus more on that. Ideally, I'll reduce it to a single—unified—testing module, but I'm unsure how realistic that is. We'll see.

oscbyspro commented 1 month ago

I could hoist DoubleInt's 2-by-1-as-3 multiplication tests if it were available to HalveableInteger (#60).

oscbyspro commented 3 weeks ago

I managed to unify all CoreInteger tests and all InfiniInt<T> tests and all but two DoubleInt<T> tests (#60). I also found one bug that I would not have found otherwise (#123). StdlibInt<T> still requires a separate testing strategy, but I am pleased with the result.

oscbyspro commented 3 weeks ago

Looks like BinaryInteger+Addition.swift was removed in (d8213e6). I'll bring it back.