From ec8a804654852d3d95761eb929198a29369bb5e5 Mon Sep 17 00:00:00 2001 From: collin Date: Fri, 19 Jun 2020 23:21:55 -0700 Subject: [PATCH] uncomment tests, remove unused method --- compiler/tests/integers/mod.rs | 8 ++++---- leo-inputs/src/errors/parser.rs | 11 ----------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/compiler/tests/integers/mod.rs b/compiler/tests/integers/mod.rs index e8e4914e42..4ed91e30ad 100644 --- a/compiler/tests/integers/mod.rs +++ b/compiler/tests/integers/mod.rs @@ -61,8 +61,8 @@ pub(crate) fn fail_synthesis(program: EdwardsTestCompiler) { } // must be below macro definitions! -// pub mod u128; -// pub mod u16; +pub mod u128; +pub mod u16; pub mod u32; -// pub mod u64; -// pub mod u8; +pub mod u64; +pub mod u8; diff --git a/leo-inputs/src/errors/parser.rs b/leo-inputs/src/errors/parser.rs index ab813980a4..e83d26d448 100644 --- a/leo-inputs/src/errors/parser.rs +++ b/leo-inputs/src/errors/parser.rs @@ -40,17 +40,6 @@ impl InputParserError { InputParserError::SyntaxError(InputSyntaxError::from(error)) } - // pub fn integer_type_mismatch(integer_type: IntegerType, integer_value: IntegerValue) -> Self { - // let message = format!( - // "expected `{}`, found `{}`", - // integer_type.to_string(), - // integer_value.type_.to_string() - // ); - // let span = integer_value.type_.span().to_owned(); - // - // InputParserError::syntax_error_span(message, span) - // } - pub fn implicit_boolean(data_type: DataType, implicit: NumberImplicitValue) -> Self { let message = format!("expected `{}`, found `{}`", data_type.to_string(), implicit.to_string());