first test passes uwu

This commit is contained in:
nora 2022-02-22 13:15:59 +01:00
parent 6f5fef2f23
commit 9a819bc3f4
7 changed files with 30 additions and 24 deletions

View file

@ -176,11 +176,14 @@ pub type IResult<'a, T> = nom::IResult<&'a [u8], T, TransError>;
).ok();
}
"short" => {
writeln!(
// todo https://github.com/amqp-node/amqplib/issues/672
if var_name != "channel_max" {
writeln!(
self.output,
r#" if {var_name} == 0 {{ fail!("number was 0 for field {var_name}") }}"#
)
.ok();
}
}
_ => unimplemented!(),
},