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 bb969186..e6c4bbb0 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 82326327..23f5b85c 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 dae4ad94..6bb64cb0 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 517c848e..d0445289 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!() + } }