Skip to content

Commit

Permalink
just running cargo fmt (FuelLabs#1772)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadfawaz authored May 30, 2022
1 parent e21bf89 commit 1544da8
Showing 1 changed file with 14 additions and 18 deletions.
32 changes: 14 additions & 18 deletions test/src/sdk-harness/test_projects/exponentiation/mod.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,17 @@
use fuels::prelude::*;
use fuels::signers::LocalWallet;
use fuels::tx::ContractId;
use fuels_abigen_macro::abigen;
use fuels::signers::LocalWallet;

abigen!(
TestPowContract,
"test_artifacts/pow/out/debug/pow-abi.json"
);
abigen!(TestPowContract, "test_artifacts/pow/out/debug/pow-abi.json");

#[tokio::test]
#[should_panic(expected = "ArithmeticOverflow")]
async fn overflowing_pow_u64_panics() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u64_overflow(100u64, 100u64)
pow_instance
.u64_overflow(100u64, 100u64)
.call()
.await
.unwrap();
Expand All @@ -25,7 +23,8 @@ async fn overflowing_pow_u64_panics() {
async fn overflowing_pow_u32_panics() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u32_overflow(10u32, 11u32)
pow_instance
.u32_overflow(10u32, 11u32)
.call()
.await
.unwrap();
Expand All @@ -36,7 +35,8 @@ async fn overflowing_pow_u32_panics() {
async fn overflowing_pow_u32_panics_max() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u32_overflow(u32::MAX, u32::MAX)
pow_instance
.u32_overflow(u32::MAX, u32::MAX)
.call()
.await
.unwrap();
Expand All @@ -48,18 +48,16 @@ async fn overflowing_pow_u32_panics_max() {
async fn overflowing_pow_u16_panics() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u16_overflow(10u16, 5u16)
.call()
.await
.unwrap();
pow_instance.u16_overflow(10u16, 5u16).call().await.unwrap();
}

#[tokio::test]
#[should_panic(expected = "ArithmeticOverflow")]
async fn overflowing_pow_u16_panics_max() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u16_overflow(u16::MAX, u16::MAX)
pow_instance
.u16_overflow(u16::MAX, u16::MAX)
.call()
.await
.unwrap();
Expand All @@ -71,18 +69,16 @@ async fn overflowing_pow_u16_panics_max() {
async fn overflowing_pow_u8_panics() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u8_overflow(10u8, 3u8)
.call()
.await
.unwrap();
pow_instance.u8_overflow(10u8, 3u8).call().await.unwrap();
}

#[tokio::test]
#[should_panic(expected = "ArithmeticOverflow")]
async fn overflowing_pow_u8_panics_max() {
let wallet = launch_provider_and_get_single_wallet().await;
let (pow_instance, _) = get_pow_test_instance(wallet).await;
pow_instance.u8_overflow(u8::MAX, u8::MAX)
pow_instance
.u8_overflow(u8::MAX, u8::MAX)
.call()
.await
.unwrap();
Expand Down

0 comments on commit 1544da8

Please sign in to comment.