Explorar el Código

test/arithmetic_proof: add simplelog and set to Debug

lunar-mining hace 4 años
padre
commit
ba355bc95c
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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)?;