You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
257 B
Rust
15 lines
257 B
Rust
4 years ago
|
fn main() {
|
||
|
println!("Hello, world!");
|
||
|
}
|
||
|
|
||
|
#[cfg(test)]
|
||
|
mod tests {
|
||
|
use packd::unpack;
|
||
|
|
||
|
#[test]
|
||
|
fn proc_macro_works() {
|
||
|
let output = unpack!(">hhl", b"\x00\x01\x00\x02\x00\x00\x00\x03");
|
||
|
assert_eq!((1, 2, 3), output);
|
||
|
}
|
||
|
}
|