diff --git a/src/tasks/tasks01/block2poly.rs b/src/tasks/tasks01/block2poly.rs index c9a8bc1..5f30cf0 100644 --- a/src/tasks/tasks01/block2poly.rs +++ b/src/tasks/tasks01/block2poly.rs @@ -8,7 +8,6 @@ use serde_json::Value; pub fn block2poly(val: &Value) -> Result> { // Convert JSON data in to a u128 // TODO: Transfer decoding into own function? - eprintln!("Decoded is: {:?}", val["block"]); let string: String = serde_json::from_value(val["block"].clone())?; let decoded: Vec = BASE64_STANDARD.decode(string)?; diff --git a/src/utils/parse.rs b/src/utils/parse.rs index 773f67e..2ab1915 100644 --- a/src/utils/parse.rs +++ b/src/utils/parse.rs @@ -24,25 +24,6 @@ pub fn parse_json(json: String) -> Result { Ok(deserialised) } -/* -pub fn generate_response_payload( - testcase_id: String, - payload: Value, -) -> Result> { - let mut hashmap = HashMap::new(); - hashmap.insert(testcase_id, payload); - Ok(hashmap) -} - -pub fn generate_response(payloads: HashMap) -> Result { - let response: Responses = Responses { - responses: payloads, - }; - - Ok(serde_json::to_value(response).unwrap()) -} -*/ - #[cfg(test)] mod tests { use std::fs; @@ -104,6 +85,8 @@ mod tests { testcase_1.action ); } + + // TODO: Reactivate tests /* #[test] fn test_response_payload_generation() { diff --git a/src/utils/poly.rs b/src/utils/poly.rs index 2aaba7d..771625b 100644 --- a/src/utils/poly.rs +++ b/src/utils/poly.rs @@ -24,7 +24,7 @@ pub fn get_coefficients(num: u128) -> Vec { for shift in 0..128 { //println!("{:?}", ((num >> shift) & 1)); if ((num >> shift) & 1) == 1 { - println!("Shift success"); + dbg!("Shift success"); powers.push(shift); } }