|
@ -337,7 +337,7 @@ mod test { |
|
|
|
|
|
|
|
|
#[test]
|
|
|
#[test]
|
|
|
fn test_derive_pso_data_packet() {
|
|
|
fn test_derive_pso_data_packet() {
|
|
|
#[derive(PSOPacketData, Debug, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(PSOPacketData)]
|
|
|
struct Test {
|
|
|
struct Test {
|
|
|
a: u8,
|
|
|
a: u8,
|
|
|
b: u32,
|
|
|
b: u32,
|
|
@ -364,7 +364,7 @@ mod test { |
|
|
|
|
|
|
|
|
#[test]
|
|
|
#[test]
|
|
|
fn test_derive_pso_data_packet_array() {
|
|
|
fn test_derive_pso_data_packet_array() {
|
|
|
#[derive(PSOPacketData, Debug, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(PSOPacketData)]
|
|
|
struct Test {
|
|
|
struct Test {
|
|
|
a: u8,
|
|
|
a: u8,
|
|
|
b: u32,
|
|
|
b: u32,
|
|
@ -394,7 +394,7 @@ mod test { |
|
|
|
|
|
|
|
|
#[test]
|
|
|
#[test]
|
|
|
fn test_derive_pso_data_packet_not_enough_data() {
|
|
|
fn test_derive_pso_data_packet_not_enough_data() {
|
|
|
#[derive(PSOPacketData, Debug, PartialEq)]
|
|
|
|
|
|
|
|
|
#[derive(PSOPacketData)]
|
|
|
struct Test {
|
|
|
struct Test {
|
|
|
a: u8,
|
|
|
a: u8,
|
|
|
b: u32,
|
|
|
b: u32,
|
|
|