diff options
Diffstat (limited to 'src/protocol/ppp.rs')
| -rw-r--r-- | src/protocol/ppp.rs | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/protocol/ppp.rs b/src/protocol/ppp.rs index 558e9a6..97fa0e5 100644 --- a/src/protocol/ppp.rs +++ b/src/protocol/ppp.rs @@ -106,10 +106,15 @@ mod tests { // example let result = PPPHeader::decode(&bytes); - if let Ok((payload, header)) = result { - println!("return: {:?}, payload: {}", header, payload.len()); - } else { - println!("return: Incomplete data"); + match result { + Ok((payload, header)) => { + println!("OK: {:?}, payload: {}", header, payload.len()); + } + Err(e) => { + println!("ERR: {:?}", e); + } } + + // assert_eq!(1, 0); } } |
