From d63d41b3b545b0e13e2ee7f880120b2ba852c654 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 14 Mar 2018 12:04:04 +0100 Subject: test: Rename test/TestHelper.* to test/Options.* and add Options::validate(). --- test/libsolidity/Assembly.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/libsolidity/Assembly.cpp') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index aff610a4..5519ae0d 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -20,7 +20,7 @@ * Unit tests for Assembly Items from evmasm/Assembly.h */ -#include +#include #include #include -- cgit v1.2.3 From 167ee2fcbb1000e6387142892c4252f8597a4481 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 4 Jan 2018 14:24:45 +0100 Subject: Update source location tests. --- test/libsolidity/Assembly.cpp | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'test/libsolidity/Assembly.cpp') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 5519ae0d..59993f66 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -158,13 +158,24 @@ BOOST_AUTO_TEST_CASE(location_test) } )"; shared_ptr n = make_shared(""); + shared_ptr codegen = make_shared("--CODEGEN--:8-17"); AssemblyItems items = compileContract(sourceCode); vector locations = - vector(24, SourceLocation(2, 75, n)) + - vector(32, SourceLocation(20, 72, n)) + - vector{SourceLocation(42, 51, n), SourceLocation(65, 67, n)} + - vector(2, SourceLocation(58, 67, n)) + - vector(2, SourceLocation(20, 72, n)); + vector(24, SourceLocation(2, 75, make_shared(""))) + + vector(2, SourceLocation(20, 72, make_shared(""))) + + vector(1, SourceLocation(8, 17, make_shared("--CODEGEN--"))) + + vector(3, SourceLocation(5, 7, make_shared("--CODEGEN--"))) + + vector(1, SourceLocation(30, 31, make_shared("--CODEGEN--"))) + + vector(1, SourceLocation(27, 28, make_shared("--CODEGEN--"))) + + vector(1, SourceLocation(20, 32, make_shared("--CODEGEN--"))) + + vector(1, SourceLocation(5, 7, make_shared("--CODEGEN--"))) + + vector(24, SourceLocation(20, 72, make_shared(""))) + + vector(1, SourceLocation(42, 51, make_shared(""))) + + vector(1, SourceLocation(65, 67, make_shared(""))) + + vector(2, SourceLocation(58, 67, make_shared(""))) + + vector(2, SourceLocation(20, 72, make_shared(""))); + + checkAssemblyLocations(items, locations); } -- cgit v1.2.3 From b25598126e57fca73058edd722eef7c681460557 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 6 Apr 2018 16:11:52 +0200 Subject: Update documentation and minor changes. --- test/libsolidity/Assembly.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'test/libsolidity/Assembly.cpp') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index 59993f66..bdb7a107 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -158,7 +158,6 @@ BOOST_AUTO_TEST_CASE(location_test) } )"; shared_ptr n = make_shared(""); - shared_ptr codegen = make_shared("--CODEGEN--:8-17"); AssemblyItems items = compileContract(sourceCode); vector locations = vector(24, SourceLocation(2, 75, make_shared(""))) + -- cgit v1.2.3 From 966367305ad511900bedfd9af08114a0b1307399 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 12 Apr 2018 20:13:16 +0200 Subject: Remove dead code and clarify throw. --- test/libsolidity/Assembly.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'test/libsolidity/Assembly.cpp') diff --git a/test/libsolidity/Assembly.cpp b/test/libsolidity/Assembly.cpp index bdb7a107..77ca363a 100644 --- a/test/libsolidity/Assembly.cpp +++ b/test/libsolidity/Assembly.cpp @@ -157,7 +157,6 @@ BOOST_AUTO_TEST_CASE(location_test) } } )"; - shared_ptr n = make_shared(""); AssemblyItems items = compileContract(sourceCode); vector locations = vector(24, SourceLocation(2, 75, make_shared(""))) + -- cgit v1.2.3