aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-05-03 19:23:53 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-05-05 21:21:25 +0800
commitf1dbc772727031a93a5fc35d0b42a60393b0fb77 (patch)
tree1f4899312f2bb6201b28e49290624073b6fb1529
parent62df401328daa8cb7b158e40947ae9cfd57329ed (diff)
downloaddexon-solidity-f1dbc772727031a93a5fc35d0b42a60393b0fb77.tar.gz
dexon-solidity-f1dbc772727031a93a5fc35d0b42a60393b0fb77.tar.zst
dexon-solidity-f1dbc772727031a93a5fc35d0b42a60393b0fb77.zip
Remove analyzer from Julia tests
-rw-r--r--test/libjulia/Parser.cpp22
1 files changed, 1 insertions, 21 deletions
diff --git a/test/libjulia/Parser.cpp b/test/libjulia/Parser.cpp
index 6d4e34c2..0dfd3033 100644
--- a/test/libjulia/Parser.cpp
+++ b/test/libjulia/Parser.cpp
@@ -52,11 +52,7 @@ bool parse(string const& _source, ErrorList& errors)
auto scanner = make_shared<Scanner>(CharStream(_source));
auto parserResult = assembly::Parser(errors, true).parse(scanner);
if (parserResult)
- {
- assembly::AsmAnalysisInfo analysisInfo;
- if (assembly::AsmAnalyzer(analysisInfo, errors).analyze(*parserResult))
- return true;
- }
+ return true;
}
catch (FatalError const&)
{
@@ -144,12 +140,6 @@ BOOST_AUTO_TEST_CASE(vardecl_complex)
BOOST_CHECK(successParse("{ let y := 2 let x := add(7, mul(6, y)) }"));
}
-BOOST_AUTO_TEST_CASE(variable_use_before_decl)
-{
- CHECK_ERROR("{ x := 2 let x := 3 }", DeclarationError, "Variable x used before it was declared.");
- CHECK_ERROR("{ function mul(y) -> z {} let x := mul(x) }", DeclarationError, "Variable x used before it was declared.");
-}
-
BOOST_AUTO_TEST_CASE(blocks)
{
BOOST_CHECK(successParse("{ let x := 7 { let y := 3 } { let z := 2 } }"));
@@ -170,16 +160,6 @@ BOOST_AUTO_TEST_CASE(function_calls)
BOOST_CHECK(successParse("{ function f(a) -> b {} function g(a, b, c) {} function x() { g(1, 2, f(mul(2, 3))) x() } }"));
}
-BOOST_AUTO_TEST_CASE(name_clashes)
-{
- CHECK_ERROR("{ let g := 2 function g() { } }", DeclarationError, "Function name g already taken in this scope");
-}
-
-BOOST_AUTO_TEST_CASE(variable_access_cross_functions)
-{
- CHECK_ERROR("{ let x := 2 function g() { let y := x } }", DeclarationError, "Identifier not found.");
-}
-
BOOST_AUTO_TEST_CASE(label)
{
CHECK_ERROR("{ label: }", ParserError, "Labels are not supported.");