//! Simple test where compiler error reporting is nicer than in doctests. use format_bytes::format_bytes; #[test] fn smoke_test() { // Exercise different code paths of the proc macro assert_eq!(format_bytes!(b""), b""); assert_eq!(format_bytes!(b"foo"), b"foo"); assert_eq!(format_bytes!(b"{}", b"foo"), b"foo"); assert_eq!(format_bytes!(b"f{}", b"oo"), b"foo"); assert_eq!(format_bytes!(b"{}oo", b"f"), b"foo"); }