aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/TestCase.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-10-11 23:43:44 +0800
committerGitHub <noreply@github.com>2018-10-11 23:43:44 +0800
commit5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec (patch)
treee6bddd3b7ca6481c7af9b9686001f2014fbe9df7 /test/libsolidity/TestCase.cpp
parent6859ec043412ddb1da1929fec4064fbd288db71e (diff)
parente62343c60bcd4dcf8fc2c43355542126b2c7f343 (diff)
downloaddexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar.gz
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar.bz2
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar.lz
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar.xz
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.tar.zst
dexon-solidity-5f5dc8956d39ab19c5408aa4c39a3cd10d3a2dec.zip
Merge pull request #5185 from ethereum/yulOptimizerTests
Yul optimizer tests
Diffstat (limited to 'test/libsolidity/TestCase.cpp')
-rw-r--r--test/libsolidity/TestCase.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/TestCase.cpp b/test/libsolidity/TestCase.cpp
index 6c4e0aea..17972269 100644
--- a/test/libsolidity/TestCase.cpp
+++ b/test/libsolidity/TestCase.cpp
@@ -29,7 +29,8 @@ using namespace std;
bool TestCase::isTestFilename(boost::filesystem::path const& _filename)
{
- return _filename.extension().string() == ".sol" &&
+ string extension = _filename.extension().string();
+ return (extension == ".sol" || extension == ".yul") &&
!boost::starts_with(_filename.string(), "~") &&
!boost::starts_with(_filename.string(), ".");
}