Cotton code
10 lines · 490 B · RustRaw
use super::*;use crate::definitions::builtin_table_definition;/// RULE: an absent source is named by its surviving definition's name, and by its id as words only when the database holds no definition for it.#[test]fn the_source_is_named_by_its_definition_then_by_its_id() {    let todo = builtin_table_definition("todo").expect("todo");    assert_eq!(source_name(Some(todo), "todo"), todo.name);    assert_eq!(source_name(None, "invented_order"), key_as_words("invented_order"));}