Cotton code
19 lines · 487 B · RustRaw
//! The emotion vocabulary the generator writes into Swift.use super::*;#[test]fn every_declared_word_travels_as_a_swift_string_literal() {    let swift = render_emotions();    for word in EMOTIONS {        assert!(            swift.contains(&format!("\"{word}\",")),            "`{word}` did not travel"        );    }    assert_eq!(        swift.matches("        \"").count(),        EMOTIONS.len(),        "the Swift list is the declaration and nothing else"    );}