1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
pub static CAUTION: &str = "⚠️";
pub static INFO: &str = "ℹ️";
pub static SAD: &str = "😢";
pub static DRY_RUN: &str = "🌀";

pub static SEARCH: &str = "🔎";
pub static WRITE: &str = "📝";
pub static TRY: &str = "🧭";
pub static DONE: &str = "✅";
pub static GOTO: &str = "↗️";

#[cfg(test)]
mod tests {
    use crate::util::log::*;

    #[test]
    fn caution_output() {
        assert_eq!("[⚠️]", format!("[{}]", CAUTION));
    }

    #[test]
    fn info_output() {
        assert_eq!("[ℹ️]", format!("[{}]", INFO));
    }

    #[test]
    fn sad_output() {
        assert_eq!("[😢]", format!("[{}]", SAD));
    }

    #[test]
    fn dry_run_output() {
        assert_eq!("[🌀]", format!("[{}]", DRY_RUN));
    }

    #[test]
    fn search_output() {
        assert_eq!("[🔎]", format!("[{}]", SEARCH));
    }

    #[test]
    fn write_output() {
        assert_eq!("[📝]", format!("[{}]", WRITE));
    }

    #[test]
    fn try_output() {
        assert_eq!("[🧭]", format!("[{}]", TRY));
    }

    #[test]
    fn done_output() {
        assert_eq!("[✅]", format!("[{}]", DONE));
    }

    #[test]
    fn goto_output() {
        assert_eq!("[↗️]", format!("[{}]", GOTO));
    }
}