Rename libsolidity/SolidityScanner to liblangutil/Scanner in tests

This commit is contained in:
Alex Beregszaszi 2020-08-05 13:33:32 +01:00
parent 42a777e9e2
commit 99d96870ae
3 changed files with 5 additions and 4 deletions

View File

@ -50,6 +50,7 @@ detect_stray_source_files("${libevmasm_sources}" "libevmasm/")
set(liblangutil_sources set(liblangutil_sources
liblangutil/CharStream.cpp liblangutil/CharStream.cpp
liblangutil/Scanner.cpp
liblangutil/SourceLocation.cpp liblangutil/SourceLocation.cpp
) )
detect_stray_source_files("${liblangutil_sources}" "liblangutil/") detect_stray_source_files("${liblangutil_sources}" "liblangutil/")
@ -92,7 +93,6 @@ set(libsolidity_sources
libsolidity/SolidityNatspecJSON.cpp libsolidity/SolidityNatspecJSON.cpp
libsolidity/SolidityOptimizer.cpp libsolidity/SolidityOptimizer.cpp
libsolidity/SolidityParser.cpp libsolidity/SolidityParser.cpp
libsolidity/SolidityScanner.cpp
libsolidity/SolidityTypes.cpp libsolidity/SolidityTypes.cpp
libsolidity/StandardCompiler.cpp libsolidity/StandardCompiler.cpp
libsolidity/SyntaxTest.cpp libsolidity/SyntaxTest.cpp

View File

@ -31,7 +31,7 @@
namespace solidity::langutil::test namespace solidity::langutil::test
{ {
BOOST_AUTO_TEST_SUITE(CharStreamtest) BOOST_AUTO_TEST_SUITE(CharStreamTest)
BOOST_AUTO_TEST_CASE(test_fail) BOOST_AUTO_TEST_CASE(test_fail)
{ {

View File

@ -21,15 +21,16 @@
*/ */
#include <liblangutil/Scanner.h> #include <liblangutil/Scanner.h>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
using namespace std; using namespace std;
using namespace solidity::langutil; using namespace solidity::langutil;
namespace solidity::frontend::test namespace solidity::langutil::test
{ {
BOOST_AUTO_TEST_SUITE(SolidityScanner) BOOST_AUTO_TEST_SUITE(ScannerTest)
BOOST_AUTO_TEST_CASE(test_empty) BOOST_AUTO_TEST_CASE(test_empty)
{ {