Selaa lähdekoodia

Improve max magnitude tests

Tom Pointon 3 vuotta sitten
vanhempi
sitoutus
a3e568f60e
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      aptos/contracts/sources/i64.move

+ 2 - 0
aptos/contracts/sources/i64.move

@@ -71,6 +71,7 @@ module pyth::i64 {
     #[test]
     fun test_max_positive_magnitude() {
         new(0x7FFFFFFFFFFFFFFF, false);
+        assert!(&new(1<<63 - 1, false) == &from_u64(1<<63 - 1), 1);
     }
 
     #[test]
@@ -82,6 +83,7 @@ module pyth::i64 {
     #[test]
     fun test_max_negative_magnitude() {
         new(0x8000000000000000, true);
+        assert!(&new(1<<63, true) == &from_u64(1<<63), 1);
     }
 
     #[test]