Removed warnings.

This commit is contained in:
2023-11-14 16:41:54 +01:00
parent a4c33ae3d2
commit 4cbe831115

View File

@@ -266,7 +266,7 @@ struct Instruction {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use crate::tasks::day16::{matches_count, parse, Instruction, Op, Registers}; use crate::tasks::day16::{Instruction, matches_count, Op, parse, Registers};
#[test] #[test]
fn example1() { fn example1() {
@@ -277,6 +277,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_AddR() { fn test_AddR() {
let op = Op::AddR; let op = Op::AddR;
let result = op.process( let result = op.process(
@@ -292,6 +293,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_AddI() { fn test_AddI() {
let op = Op::AddI; let op = Op::AddI;
let result = op.process( let result = op.process(
@@ -307,6 +309,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_MulR() { fn test_MulR() {
let op = Op::MulR; let op = Op::MulR;
let result = op.process( let result = op.process(
@@ -322,6 +325,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_MulI() { fn test_MulI() {
let op = Op::MulI; let op = Op::MulI;
let result = op.process( let result = op.process(
@@ -337,6 +341,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_BanR() { fn test_BanR() {
let op = Op::BanR; let op = Op::BanR;
let result = op.process( let result = op.process(
@@ -352,6 +357,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_BanI() { fn test_BanI() {
let op = Op::BanI; let op = Op::BanI;
let result = op.process( let result = op.process(
@@ -367,6 +373,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_BorR() { fn test_BorR() {
let op = Op::BorR; let op = Op::BorR;
let result = op.process( let result = op.process(
@@ -382,6 +389,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_BorI() { fn test_BorI() {
let op = Op::BorI; let op = Op::BorI;
let result = op.process( let result = op.process(
@@ -397,6 +405,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_SetR() { fn test_SetR() {
let op = Op::SetR; let op = Op::SetR;
let result = op.process( let result = op.process(
@@ -412,6 +421,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_SetI() { fn test_SetI() {
let op = Op::SetI; let op = Op::SetI;
let result = op.process( let result = op.process(
@@ -427,6 +437,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtIR_true() { fn test_GtIR_true() {
let op = Op::GtIR; let op = Op::GtIR;
let result = op.process( let result = op.process(
@@ -442,6 +453,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtIR_false() { fn test_GtIR_false() {
let op = Op::GtIR; let op = Op::GtIR;
let result = op.process( let result = op.process(
@@ -457,6 +469,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtRI_true() { fn test_GtRI_true() {
let op = Op::GtRI; let op = Op::GtRI;
let result = op.process( let result = op.process(
@@ -472,6 +485,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtRI_false() { fn test_GtRI_false() {
let op = Op::GtRI; let op = Op::GtRI;
let result = op.process( let result = op.process(
@@ -487,6 +501,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtRR_true() { fn test_GtRR_true() {
let op = Op::GtRR; let op = Op::GtRR;
let result = op.process( let result = op.process(
@@ -502,6 +517,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_GtRR() { fn test_GtRR() {
let op = Op::GtRR; let op = Op::GtRR;
let result = op.process( let result = op.process(
@@ -517,6 +533,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqIR_true() { fn test_EqIR_true() {
let op = Op::EqIR; let op = Op::EqIR;
let result = op.process( let result = op.process(
@@ -532,6 +549,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqIR_false() { fn test_EqIR_false() {
let op = Op::EqIR; let op = Op::EqIR;
let result = op.process( let result = op.process(
@@ -547,6 +565,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqRI_true() { fn test_EqRI_true() {
let op = Op::EqRI; let op = Op::EqRI;
let result = op.process( let result = op.process(
@@ -562,6 +581,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqRI_false() { fn test_EqRI_false() {
let op = Op::EqRI; let op = Op::EqRI;
let result = op.process( let result = op.process(
@@ -577,6 +597,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqRR_true() { fn test_EqRR_true() {
let op = Op::EqRR; let op = Op::EqRR;
let result = op.process( let result = op.process(
@@ -592,6 +613,7 @@ mod test {
} }
#[test] #[test]
#[allow(non_snake_case)]
fn test_EqRR_false() { fn test_EqRR_false() {
let op = Op::EqRR; let op = Op::EqRR;
let result = op.process( let result = op.process(