http_protocol/char/
mod.rs1#[macro_export]
2macro_rules! cr {
3 () => {
4 0x0du8
5 };
6}
7
8#[test]
9fn rf_test() {
10 assert_eq!(cr!(), '\r' as u8);
11}
12
13#[macro_export]
14macro_rules! lf {
15 () => {
16 0x0au8
17 };
18}
19
20#[test]
21fn lf_test() {
22 assert_eq!(lf!(), '\n' as u8);
23}
24
25#[macro_export]
26macro_rules! sp {
27 () => {
28 0x20u8
29 };
30}
31
32#[test]
33fn space_bar_test() {
34 assert_eq!(sp!(), ' ' as u8);
35}
36
37#[macro_export]
38macro_rules! ht {
39 () => {
40 0x9u8
41 };
42}