aboutsummaryrefslogtreecommitdiff
path: root/src/test_macros.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-08 14:16:23 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-08 14:16:23 -0400
commit73674a540e6d48ae4ff16fc26e91fc9605ee0126 (patch)
treefb94345b025dc8735e2df90042e6f837ef8dc474 /src/test_macros.rs
parent2b345b92b0925cd138c171ee5971a6e977467483 (diff)
downloadmcproto-rs-73674a540e6d48ae4ff16fc26e91fc9605ee0126.tar.gz
mcproto-rs-73674a540e6d48ae4ff16fc26e91fc9605ee0126.tar.bz2
mcproto-rs-73674a540e6d48ae4ff16fc26e91fc9605ee0126.zip
fix update light packet
Diffstat (limited to 'src/test_macros.rs')
-rw-r--r--src/test_macros.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test_macros.rs b/src/test_macros.rs
index a530c3e..8283d30 100644
--- a/src/test_macros.rs
+++ b/src/test_macros.rs
@@ -5,8 +5,11 @@ macro_rules! packet_test_cases {
($pnam: ident, $varnam: ident, $bodnam: ident, $testnam: ident, $benchnams: ident, $benchnamd: ident) => {
#[test]
fn $testnam() {
- for _ in 0..10 {
+ for k in 0..10 {
let packet = $pnam::$varnam($bodnam::test_gen_random());
+ if k == 0 {
+ println!("{:?}", packet);
+ }
let mut out = BytesSerializer::default();
packet.mc_serialize(&mut out).expect("serialize succeeds");
let bytes = out.into_bytes();