apple / swift-numerics

Advanced mathematical types and functions for Swift
Apache License 2.0
1.66k stars 140 forks source link

[BigInt tests][No merge] ❌🐰 Apple #255

Open LiarPrincess opened 1 year ago

LiarPrincess commented 1 year ago

Please read the #242 Using tests from “Violet - Python VM written in Swift” before.


=== DO NOT MERGE! Discussion only. ===

🐰 Discussion

Tests copied and adapted from: github.com/apple/swift/test/Prototypes/BigInt.swift.

This is more of a "Is there anything interesting in there?", rather than "Let's use those tests.". If you see something, then we may want to move it to appropriate location.

Not sure about license… technically this is github.com/apple/swift, so who cares… but somebody may want to look into this.

❌ Failures

Div, xor and magnitude.

Nothing interesting, they were described in other PRs.