Skip to content
This repository was archived by the owner on Jul 3, 2024. It is now read-only.

Commit fbfd06b

Browse files
Leon-azerty0xmemorygrinder
authored andcommitted
fix: 3 tests
1 parent 4fcc69a commit fbfd06b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/ast-references/src/file_retriever.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ mod tests {
370370
assert_eq!(
371371
visitor.file_reference.borrow().contracts[0]
372372
.borrow()
373-
.properties
373+
.enums
374374
.len(),
375375
1
376376
);
@@ -428,7 +428,7 @@ mod tests {
428428
let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
429429
path.push("tests");
430430
path.push("events");
431-
path.push("file.sol");
431+
path.push("contract.sol");
432432
let path_str = path.to_str().unwrap().to_string();
433433
let source = fs::read_to_string(&path).unwrap();
434434

@@ -458,7 +458,7 @@ mod tests {
458458
let mut visitor = FileVisitor::new(path_str.clone());
459459
let contract_ref = ContractReference::new(
460460
"Good".to_string(),
461-
Location::new(path_str, Bound { line: 1, column: 1 }, Bound::new(1, 10)),
461+
Location::new(path_str, Bound { line: 1, column: 1 }, Bound::new(10, 100)),
462462
&visitor.file_reference,
463463
);
464464
visitor
@@ -487,7 +487,7 @@ mod tests {
487487
assert_eq!(
488488
visitor.file_reference.borrow().contracts[0]
489489
.borrow()
490-
.properties
490+
.functions
491491
.len(),
492492
1
493493
);
@@ -534,7 +534,7 @@ mod tests {
534534
assert_eq!(
535535
visitor.file_reference.borrow().contracts[0]
536536
.borrow()
537-
.properties
537+
.structs
538538
.len(),
539539
1
540540
);

0 commit comments

Comments
 (0)