Test
This commit is contained in:
parent
6ef58f70c1
commit
917ad559e0
2 changed files with 17 additions and 0 deletions
3
src/lib.rs
Normal file
3
src/lib.rs
Normal file
|
@ -0,0 +1,3 @@
|
|||
pub mod flow;
|
||||
pub mod io;
|
||||
pub mod types;
|
14
tests/integration.rs
Normal file
14
tests/integration.rs
Normal file
|
@ -0,0 +1,14 @@
|
|||
use pathfinder2::flow::compute_flow;
|
||||
use pathfinder2::io::read_edges_binary;
|
||||
use pathfinder2::types::Address;
|
||||
|
||||
#[test]
|
||||
fn test_flow() {
|
||||
let edges = read_edges_binary(&"edges.dat".to_string()).unwrap();
|
||||
let transfers = compute_flow(
|
||||
&Address::from("0x8DC7e86fF693e9032A0F41711b5581a04b26Be2E"),
|
||||
&Address::from("0x42cEDde51198D1773590311E2A340DC06B24cB37"),
|
||||
&edges,
|
||||
);
|
||||
println!("{:?}", transfers);
|
||||
}
|
Loading…
Reference in a new issue