Skip to content

Commit

Permalink
feat: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
JordyRo1 committed Oct 22, 2023
1 parent 65e6f75 commit b5e0358
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/tests/test_oracle.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -822,26 +822,26 @@ fn test_get_last_checkpoint_before_should_fail_if_timestamp_too_old() {


#[test]
#[should_panic(expected: ('No base currency registered','ENTRYPOINT_FAILED' ))]
#[should_panic(expected: ('No base currency registered', 'ENTRYPOINT_FAILED'))]
#[available_gas(2000000000)]
fn test_add_pair_should_panic_if_base_currency_do_not_corresponds() {
let (publisher_registry, oracle) = setup();
oracle.add_pair(Pair {
id: 10 ,
quote_currency_id: 111,
base_currency_id: 1931029312, //wrong base currency id
})
let (publisher_registry, oracle) = setup();
oracle
.add_pair(
Pair {
id: 10,
quote_currency_id: 111,
base_currency_id: 1931029312, //wrong base currency id
}
)
}


#[test]
#[should_panic(expected: ('No quote currency registered', 'ENTRYPOINT_FAILED'))]
#[available_gas(2000000000)]
fn test_add_pair_should_panic_if_quote_currency_do_not_corresponds() {
let (publisher_registry, oracle) = setup();
oracle.add_pair(Pair {
id: 10 ,
quote_currency_id: 123123132,
base_currency_id: USD_CURRENCY_ID,
})
}
let (publisher_registry, oracle) = setup();
oracle
.add_pair(Pair { id: 10, quote_currency_id: 123123132, base_currency_id: USD_CURRENCY_ID, })
}

0 comments on commit b5e0358

Please sign in to comment.