aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2022-04-24 00:33:26 -0600
committerMelody Horn <melody@boringcactus.com>2022-04-24 00:33:26 -0600
commit18bd24960b220a0467aee57b1f77952a694433f0 (patch)
tree28cd22f8ebacc0bb4ed5d8e41d5252774ab62b50 /tests
parent74b64c103302b3715ad4222782cf872405ac5463 (diff)
downloadkdl-schema-canon.tar.gz
kdl-schema-canon.zip
use `r#ref` instead of `ref_` as field nameHEADcanon
Diffstat (limited to 'tests')
-rw-r--r--tests/ref-resolution.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/ref-resolution.rs b/tests/ref-resolution.rs
index e6bb648..df5ee9b 100644
--- a/tests/ref-resolution.rs
+++ b/tests/ref-resolution.rs
@@ -107,27 +107,27 @@ fn children_ref_malformed() {
#[test]
fn all_schema_schema_refs_resolve() {
fn all_refs_resolve(node: &Node) {
- if let Some(r#ref) = &node.ref_ {
+ if let Some(r#ref) = &node.r#ref {
SCHEMA_SCHEMA
.resolve_node_ref(r#ref)
.unwrap_or_else(|| panic!("node ref {} not found", r#ref));
} else {
for prop in &node.props {
- if let Some(r#ref) = &prop.ref_ {
+ if let Some(r#ref) = &prop.r#ref {
SCHEMA_SCHEMA
.resolve_prop_ref(r#ref)
.unwrap_or_else(|| panic!("prop ref {} not found", r#ref));
}
}
for value in &node.values {
- if let Some(r#ref) = &value.ref_ {
+ if let Some(r#ref) = &value.r#ref {
SCHEMA_SCHEMA
.resolve_value_ref(r#ref)
.unwrap_or_else(|| panic!("value ref {} not found", r#ref));
}
}
for children in &node.children {
- if let Some(r#ref) = &children.ref_ {
+ if let Some(r#ref) = &children.r#ref {
SCHEMA_SCHEMA
.resolve_children_ref(r#ref)
.unwrap_or_else(|| panic!("children ref {} not found", r#ref));