update tests

This commit is contained in:
zjp 2022-08-22 21:32:50 +08:00
parent 863ec4ac7f
commit edc44e44f8
2 changed files with 3 additions and 3 deletions

View file

@ -624,7 +624,7 @@ fn parse_error() {
statements: [],
},
[
Diagnostic { position: 10, message: "unexpected character" },
Diagnostic { start: 10, end: 11, message: "unexpected character" },
],
)"#]];
expected.assert_eq(&actual);

View file

@ -246,8 +246,8 @@ fn fix_bad_variable_in_function() {
"#]],
expect![[r#"
[
"Event: Event { runtime_id: RuntimeId { counter: 0 }, kind: WillExecute { database_key: DependencyIndex { ingredient_index: IngredientIndex(15), key_index: Some(Id { value: 1 }) } } }",
"Event: Event { runtime_id: RuntimeId { counter: 0 }, kind: WillExecute { database_key: DependencyIndex { ingredient_index: IngredientIndex(18), key_index: Some(Id { value: 1 }) } } }",
"Event: Event { runtime_id: RuntimeId { counter: 0 }, kind: WillExecute { database_key: parse_statements(0) } }",
"Event: Event { runtime_id: RuntimeId { counter: 0 }, kind: WillExecute { database_key: type_check_function(0) } }",
]
"#]],
)],