[yul-phaser] Move stripWhitespace() from Program tests to Common

This commit is contained in:
Kamil Śliwak
2020-02-18 19:38:55 +01:00
parent 71dcbf9df5
commit 837ea96da7
4 changed files with 29 additions and 7 deletions
+2 -7
View File
@@ -15,6 +15,8 @@
along with solidity. If not, see <http://www.gnu.org/licenses/>.
*/
#include <test/yulPhaser/Common.h>
#include <tools/yulPhaser/Exceptions.h>
#include <tools/yulPhaser/Program.h>
@@ -30,7 +32,6 @@
#include <boost/test/unit_test.hpp>
#include <cassert>
#include <regex>
#include <string>
using namespace std;
@@ -51,12 +52,6 @@ namespace
else
return _block;
}
string stripWhitespace(string const& input)
{
regex whitespaceRegex("\\s+");
return regex_replace(input, whitespaceRegex, "");
}
}
namespace solidity::phaser::test