Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
up
  • Loading branch information
shunsukew committed Feb 17, 2023
commit a760e9b2cd4e6e3e0894c11fa8dc758544a6541c
4 changes: 2 additions & 2 deletions uniswap-v2/logics/impls/pair/pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -499,14 +499,14 @@ mod tests {

use super::update_cumulative;

#[test]
#[ink::test]
fn update_cumulative_from_zero_time_elapsed() {
let (cumulative0, cumulative1) = update_cumulative(0.into(), 0.into(), 0.into(), 10, 10);
assert_eq!(cumulative0, 0.into());
assert_eq!(cumulative1, 0.into());
}

#[test]
#[ink::test]
fn update_cumulative_from_one_time_elapsed() {
let (cumulative0, cumulative1) = update_cumulative(0.into(), 0.into(), 1.into(), 10, 10);
assert_eq!(
Expand Down