From edc44e44f89f7af48c218145f4ca89d20c384f3e Mon Sep 17 00:00:00 2001 From: zjp Date: Mon, 22 Aug 2022 21:32:50 +0800 Subject: [PATCH] update tests --- calc-example/calc/src/parser.rs | 2 +- calc-example/calc/src/type_check.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/calc-example/calc/src/parser.rs b/calc-example/calc/src/parser.rs index 5869e945..c01acb39 100644 --- a/calc-example/calc/src/parser.rs +++ b/calc-example/calc/src/parser.rs @@ -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); diff --git a/calc-example/calc/src/type_check.rs b/calc-example/calc/src/type_check.rs index f62b2086..57d9b13f 100644 --- a/calc-example/calc/src/type_check.rs +++ b/calc-example/calc/src/type_check.rs @@ -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) } }", ] "#]], )],