Skip to content

Commit

Permalink
tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ciminilorenzo committed Feb 29, 2024
1 parent bfcbc68 commit 9598486
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tests/test_bvgraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ use folded_streaming_rans::bvgraph::mock_writers::{EntropyEstimator, Log2Estimat
use lender::for_;
use webgraph::prelude::*;

fn init() {
let _ = env_logger::builder().is_test(true).try_init();
}

#[test]
fn decoder_decodes_correctly_dummy_graph() -> Result<()> {
let mut graph = VecGraph::new();
Expand Down Expand Up @@ -94,11 +98,7 @@ fn decoder_decodes_correctly_dummy_graph() -> Result<()> {

#[test]
fn decoder_decodes_correctly_cnr_graph() -> Result<()> {
stderrlog::new()
.verbosity(2)
.timestamp(stderrlog::Timestamp::Second)
.init()
.unwrap();
init();

let graph = BVGraph::with_basename("tests/data/cnr-2000/cnr-2000")
.endianness::<BE>()
Expand Down Expand Up @@ -156,11 +156,7 @@ fn decoder_decodes_correctly_cnr_graph() -> Result<()> {

#[test]
fn decoder_decodes_correctly_sequential_cnr_graph() -> Result<()> {
stderrlog::new()
.verbosity(2)
.timestamp(stderrlog::Timestamp::Second)
.init()
.unwrap();
init();

let graph = BVGraphSeq::with_basename("tests/data/cnr-2000/cnr-2000")
.endianness::<BE>()
Expand Down

0 comments on commit 9598486

Please # to comment.