cleansh 0.1.11

Sanitize your terminal output. One tool. One purpose.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// cleansh-workspace/cleansh/tests/platform_test.rs

use cleansh::utils::platform::eof_key_combo;

#[test]
fn test_eof_key_combo_is_correct() {
    // This test will be run on the CI's Linux machine (ubuntu-latest)
    // and should assert the correct value for that platform.
    if cfg!(windows) {
        assert_eq!(eof_key_combo(), "Ctrl+Z");
    } else {
        // This is the expected path for your Ubuntu CI runner
        assert_eq!(eof_key_combo(), "Ctrl+D");
    }
}