From 534395ee4d8587938e40ebf1c688b7e7e656b185 Mon Sep 17 00:00:00 2001 From: Nicholas Ward Date: Wed, 15 Mar 2023 22:30:54 -0700 Subject: [PATCH] fmt --- evm/src/cpu/kernel/tests/bignum.rs | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/evm/src/cpu/kernel/tests/bignum.rs b/evm/src/cpu/kernel/tests/bignum.rs index 17a68d89..1d4196b2 100644 --- a/evm/src/cpu/kernel/tests/bignum.rs +++ b/evm/src/cpu/kernel/tests/bignum.rs @@ -16,19 +16,22 @@ const BIGNUM_LIMB_BITS: usize = 128; const MINUS_ONE: U256 = U256::MAX; fn test_data() -> Vec { - let mut data = vec![0u128.into(), 1u128.into(), u128::MAX.into(), - 21u128.into(), -908u128.into(), -1267650597867046177654064545792u128.into(), -BigUint::from_str("57896044618658097611351864738157061705262361561497619362091104892532012613632").unwrap(), -BigUint::from_str("115792089237105570840234253759177109864155645142784332660520492325483608801280").unwrap(), -BigUint::from_str("231583736816786089484927226016147767929578972263620494977377884571370600267775").unwrap(), -BigUint::from_str("3273390607896141870013189696827599152216642046043064789482248405676250539528505110690804490707447337828870590656092725446174963629590181147084998049792").unwrap(), -BigUint::from_str("5027927973729236057982426364448826617555638513633071601633370220421967636306746498030257094484300966958703364072352628851378448187094873990326993486348287").unwrap(), -BigUint::from_str("13407807929942597099574024997867385471458758537929012740010782671329620832395834992528134114986407662672821420428107228756016346166874193365792884690780159").unwrap(), -BigUint::from_str("26815615859885194199148049995734770942917517075858043397979502765092926124329914532610493203135186264306101107885244098459867671853087539206018919387103232").unwrap(), -BigUint::from_str("10715086071862672019870723708373567867164049597134887969429342556289689092328893032953381579589338312602609246283412714238525362926688916032991604094856600340922050198587112063568778839323187143820237543594206457218073322356882436956454658807341118763364007714359232059366253413058442519879029375369216").unwrap(), -BigUint::from_str("35074662110434038747627587960280857993524015880330828824075798024790963850563322203657080886584969261653150287318235382932361986378200976930485864824618483190079311572443216561952044719477365706568052969551481762567552970942589810378882925959353769117684987193135809357565477252870988890605581060988309091800917730687720491038972968230771526418895306251191697869752495655463738834197691172975281348836466132387998255571752838316161056568930429957046271").unwrap(), + let mut data = vec![ + 0u128.into(), + 1u128.into(), + u128::MAX.into(), + 21u128.into(), + 908u128.into(), + 1267650597867046177654064545792u128.into(), + BigUint::from_str("57896044618658097611351864738157061705262361561497619362091104892532012613632").unwrap(), + BigUint::from_str("115792089237105570840234253759177109864155645142784332660520492325483608801280").unwrap(), + BigUint::from_str("231583736816786089484927226016147767929578972263620494977377884571370600267775").unwrap(), + BigUint::from_str("3273390607896141870013189696827599152216642046043064789482248405676250539528505110690804490707447337828870590656092725446174963629590181147084998049792").unwrap(), + BigUint::from_str("5027927973729236057982426364448826617555638513633071601633370220421967636306746498030257094484300966958703364072352628851378448187094873990326993486348287").unwrap(), + BigUint::from_str("13407807929942597099574024997867385471458758537929012740010782671329620832395834992528134114986407662672821420428107228756016346166874193365792884690780159").unwrap(), + BigUint::from_str("26815615859885194199148049995734770942917517075858043397979502765092926124329914532610493203135186264306101107885244098459867671853087539206018919387103232").unwrap(), + BigUint::from_str("10715086071862672019870723708373567867164049597134887969429342556289689092328893032953381579589338312602609246283412714238525362926688916032991604094856600340922050198587112063568778839323187143820237543594206457218073322356882436956454658807341118763364007714359232059366253413058442519879029375369216").unwrap(), + BigUint::from_str("35074662110434038747627587960280857993524015880330828824075798024790963850563322203657080886584969261653150287318235382932361986378200976930485864824618483190079311572443216561952044719477365706568052969551481762567552970942589810378882925959353769117684987193135809357565477252870988890605581060988309091800917730687720491038972968230771526418895306251191697869752495655463738834197691172975281348836466132387998255571752838316161056568930429957046271").unwrap(), ]; data.sort();