From 63b0f29728578f117ee556d720f49180f70c7077 Mon Sep 17 00:00:00 2001 From: pca006132 Date: Sat, 5 Mar 2022 00:27:51 +0800 Subject: [PATCH] Fix broken tests --- nac3core/src/codegen/test.rs | 4 ++++ nac3core/src/toplevel/test.rs | 4 ++++ nac3core/src/typecheck/type_inferencer/test.rs | 4 ++++ nac3standalone/src/basic_symbol_resolver.rs | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/nac3core/src/codegen/test.rs b/nac3core/src/codegen/test.rs index bb9691864..e6c4bbb0b 100644 --- a/nac3core/src/codegen/test.rs +++ b/nac3core/src/codegen/test.rs @@ -70,6 +70,10 @@ impl SymbolResolver for Resolver { fn get_string_id(&self, _: &str) -> i32 { unimplemented!() } + + fn get_exception_id(&self, tyid: usize) -> usize { + unimplemented!() + } } #[test] diff --git a/nac3core/src/toplevel/test.rs b/nac3core/src/toplevel/test.rs index 823263272..23f5b85c0 100644 --- a/nac3core/src/toplevel/test.rs +++ b/nac3core/src/toplevel/test.rs @@ -71,6 +71,10 @@ impl SymbolResolver for Resolver { fn get_string_id(&self, _: &str) -> i32 { unimplemented!() } + + fn get_exception_id(&self, tyid: usize) -> usize { + unimplemented!() + } } #[test_case( diff --git a/nac3core/src/typecheck/type_inferencer/test.rs b/nac3core/src/typecheck/type_inferencer/test.rs index dae4ad947..6bb64cb02 100644 --- a/nac3core/src/typecheck/type_inferencer/test.rs +++ b/nac3core/src/typecheck/type_inferencer/test.rs @@ -50,6 +50,10 @@ impl SymbolResolver for Resolver { fn get_string_id(&self, _: &str) -> i32 { unimplemented!() } + + fn get_exception_id(&self, tyid: usize) -> usize { + unimplemented!() + } } struct TestEnvironment { diff --git a/nac3standalone/src/basic_symbol_resolver.rs b/nac3standalone/src/basic_symbol_resolver.rs index 517c848eb..d04452898 100644 --- a/nac3standalone/src/basic_symbol_resolver.rs +++ b/nac3standalone/src/basic_symbol_resolver.rs @@ -75,4 +75,8 @@ impl SymbolResolver for Resolver { id } } + + fn get_exception_id(&self, tyid: usize) -> usize { + unimplemented!() + } }