Repair ordinary-index fixtures to exercise intended validation
This commit is contained in:
@@ -455,6 +455,17 @@ fn duplicate_global_header_and_cross_file_projection_damage_are_distinct() {
|
||||
.unwrap()
|
||||
.clone();
|
||||
key.field = Some(lower::Field::Body);
|
||||
// Reclassify an existing whole call token as a second header; remove its
|
||||
// former role so physical uniqueness cannot mask the header-coverage check.
|
||||
let call = duplicate
|
||||
.data
|
||||
.occurrences
|
||||
.iter()
|
||||
.find(|(_, at)| at.file == 2 && at.span == span(291, 292))
|
||||
.unwrap()
|
||||
.0
|
||||
.clone();
|
||||
duplicate.data.occurrences.remove(&call);
|
||||
duplicate.data.occurrences.insert(
|
||||
key,
|
||||
index::Location {
|
||||
@@ -520,7 +531,7 @@ fn nested_ordinary_declarations_use_no_typed_frame_policy() {
|
||||
fn malformed_reference_utf8_start_is_reported_without_slicing_panic() {
|
||||
let mut bundle = rich_bundle(Layer::Oa);
|
||||
*bundle.files.get_mut("main.arcadia").unwrap() =
|
||||
bundle.files["main.arcadia"].replace("diagram @d", "diagram @ /* 雨 */d");
|
||||
bundle.files["main.arcadia"].replace("diagram @d", "diagram @ // 雨\r\n d");
|
||||
let mut damaged = indexed(&bundle);
|
||||
let byte = bundle.files["main.arcadia"].find('雨').unwrap() + 1;
|
||||
node_field(&mut damaged, "diagram").value.span.start = byte;
|
||||
@@ -620,7 +631,7 @@ fn every_authored_category_reference_excludes_trivia_prose_and_historical_uuid()
|
||||
.any(|o| o.owner == id(4) && o.role == R),
|
||||
"implicit parent has no authored token"
|
||||
);
|
||||
assert_eq!(&CATEGORIES[323..345], "@ /* @noise child */ a");
|
||||
assert_eq!(&CATEGORIES[323..345], "@ // @noise child\r\n a");
|
||||
let Some(semantic) = complete.project().traces[&id(9)]
|
||||
.baseline
|
||||
.as_ref()
|
||||
|
||||
+2
-1
@@ -2,7 +2,8 @@ arcadia 8;
|
||||
project p "Authored @p child" id "00000000-0000-0000-0000-000000000001" {
|
||||
description "Do not index @child, @link or uuid in prose 雨";
|
||||
oa_activity a "Parent child" id "00000000-0000-0000-0000-000000000002" {
|
||||
oa_activity child "Explicit child" id "00000000-0000-0000-0000-000000000003" { parent @ /* @noise child */ a; }
|
||||
oa_activity child "Explicit child" id "00000000-0000-0000-0000-000000000003" { parent @ // @noise child
|
||||
a; }
|
||||
oa_activity implicit "Implicit child" id "00000000-0000-0000-0000-000000000004" { description "child @a"; }
|
||||
}
|
||||
sa_function s "Selected" id "00000000-0000-0000-0000-000000000005" {}
|
||||
|
||||
Reference in New Issue
Block a user