apple / swift-numerics

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

[BigInt tests] ❌🐰 Int properties #252

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.


🐰 Discussion

Let me know what you think, I will fix the tests.

❌ Failures

func test_magnitude() {
  let big = BigInt(-9223372036854775808)
  let expect = UInt64(9223372036854775808)
  XCTAssertEqual(big.magnitude, BigInt(expect))
}