MCPcopy Create free account
hub / github.com/RustCrypto/utils / allows_various_spacing

Function allows_various_spacing

hex-literal/tests/basic.rs:61–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59
60#[test]
61fn allows_various_spacing() {
62 // newlines
63 assert_eq!(
64 hex!(
65 "f
66 f
67 d
68 0
69 e
70
71 8
72 "
73 ),
74 [0xff, 0xd0, 0xe8]
75 );
76 // tabs
77 assert_eq!(hex!("9f d 1 f07 3 01 "), [0x9f, 0xd1, 0xf0, 0x73, 0x01]);
78 // spaces
79 assert_eq!(hex!(" e e d0 9 1 f f "), [0xee, 0xd0, 0x91, 0xff]);
80}
81
82#[test]
83fn can_use_const() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected