Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sorami committed Feb 27, 2024
1 parent 79ceddf commit 9a5c595
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nusamai/src/transformer/transform/attrname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ mod tests {
assert_eq!(transform.rename("namespace:foo"), Some("foo")); // ns removed
assert_eq!(transform.rename("namespace:attr1"), Some("attr1_new"));
assert_eq!(transform.rename("veg:attr1"), Some("attr1_new"));
// note: a rule written with specific namespace takes precedence, compared to the general rule with "*"
assert_eq!(transform.rename("bldg:attr1"), Some("atrr1_bldg"));
}
}

0 comments on commit 9a5c595

Please sign in to comment.