diff options
author | Joey Sacchini <joey@sacchini.net> | 2020-10-20 18:20:45 -0400 |
---|---|---|
committer | Joey Sacchini <joey@sacchini.net> | 2020-10-20 18:20:45 -0400 |
commit | 9facbf7d8a9c00b2413be325b23aeed786d7a7c1 (patch) | |
tree | f5260368a63f4202523ef4ab54c69eab55814220 /src/test_macros.rs | |
parent | fc08a93b6109373652d6775fe1bfb7d18cdb7575 (diff) | |
download | mcproto-rs-9facbf7d8a9c00b2413be325b23aeed786d7a7c1.tar.gz mcproto-rs-9facbf7d8a9c00b2413be325b23aeed786d7a7c1.tar.bz2 mcproto-rs-9facbf7d8a9c00b2413be325b23aeed786d7a7c1.zip |
lots of macro and type refactoring to simplify common patterns such as: position/location/rotation, counted array types (macro -> generics), rename some macros, and use macros to implement primitives (and other things in types.rs inc: VarInt/VarNum)
Diffstat (limited to 'src/test_macros.rs')
-rw-r--r-- | src/test_macros.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_macros.rs b/src/test_macros.rs index 1ab1716..1eeddb9 100644 --- a/src/test_macros.rs +++ b/src/test_macros.rs @@ -4,7 +4,7 @@ macro_rules! packet_test_cases { ($pnam: ident, $varnam: ident, $bodnam: ident, $testnam: ident, $benchnams: ident, $benchnamd: ident) => { #[test] fn $testnam() { - for k in 0..10 { + for k in 0..50 { let packet = $pnam::$varnam($bodnam::test_gen_random()); if k == 0 { println!("{:?}", packet); |