diff options
author | chriseth <chris@ethereum.org> | 2018-10-09 21:43:55 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-10-11 22:59:57 +0800 |
commit | 4607118d2e9bbf59707b48f177aff54ac99163b8 (patch) | |
tree | 58853b286db239558ee9062a788bbfd86837def3 /test/libsolidity | |
parent | 6859ec043412ddb1da1929fec4064fbd288db71e (diff) | |
download | dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar.gz dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar.bz2 dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar.lz dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar.xz dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.tar.zst dexon-solidity-4607118d2e9bbf59707b48f177aff54ac99163b8.zip |
Add Yul optimizer test framework.
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/TestCase.cpp | 3 |
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(), "."); } |