Bläddra i källkod

test/arithmetic_proof: add simplelog and set to Debug

lunar-mining 4 år sedan
förälder
incheckning
ba355bc95c
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      tests/arithmetic_proof.rs

+ 5 - 0
tests/arithmetic_proof.rs

@@ -13,8 +13,13 @@ use darkfi::{
 use pasta_curves::pallas;
 use rand::rngs::OsRng;
 
+use simplelog::{ColorChoice, Config, LevelFilter, TermLogger, TerminalMode};
+
 #[test]
 fn arithmetic_proof() -> Result<()> {
+    TermLogger::init(LevelFilter::Debug, Config::default(), TerminalMode::Mixed, ColorChoice::Auto)
+        .unwrap();
+
     /* ANCHOR: main */
     let bincode = include_bytes!("../proof/arithmetic.zk.bin");
     let zkbin = ZkBinary::decode(bincode)?;