add *Assign operators, make most operators work on Into<type> and make most operators work on references on uint (#31)

This commit is contained in:
kingoflolz 2018-06-04 20:49:30 +08:00 committed by Tomasz Drwięga
parent 24b94af449
commit 12f9448a93
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ macro_rules! test {
($name::from(1_000), "0x3e8"), ($name::from(1_000), "0x3e8"),
($name::from(100_000), "0x186a0"), ($name::from(100_000), "0x186a0"),
($name::from(u64::max_value()), "0xffffffffffffffff"), ($name::from(u64::max_value()), "0xffffffffffffffff"),
($name::from(u64::max_value()) + 1.into(), "0x10000000000000000"), ($name::from(u64::max_value()) + 1, "0x10000000000000000"),
]; ];
for (number, expected) in tests { for (number, expected) in tests {