Skip to content

Commit c513413

Browse files
committed
Updates isoltest commandline help.
1 parent 73205f0 commit c513413

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

test/libsolidity/SemanticTest.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@
2828
using namespace dev;
2929
using namespace solidity;
3030
using namespace dev::solidity::test;
31-
using namespace dev::solidity::test::formatting;
31+
using namespace dev::formatting;
3232
using namespace std;
33-
namespace fs = boost::filesystem;
3433
using namespace boost;
3534
using namespace boost::algorithm;
3635
using namespace boost::unit_test;
36+
namespace fs = boost::filesystem;
3737

3838
namespace
3939
{
@@ -134,7 +134,7 @@ namespace
134134
_stream << endl << _linePrefix << newline << ws;
135135

136136
bytes output = _renderResult ? call.expectations.rawBytes() : _test.rawBytes;
137-
FormattedScope(_stream, highlight, {formatting::RED_BACKGROUND}) <<
137+
AnsiColorized(_stream, highlight, {RED_BACKGROUND}) <<
138138
formatBytes(output, call.expectations.result);
139139
};
140140

@@ -184,15 +184,15 @@ bool SemanticTest::run(ostream& _stream, string const& _linePrefix, bool const _
184184

185185
if (!success)
186186
{
187-
FormattedScope(_stream, _formatted, {BOLD, CYAN}) << _linePrefix << "Expected result:" << endl;
187+
AnsiColorized(_stream, _formatted, {BOLD, CYAN}) << _linePrefix << "Expected result:" << endl;
188188
for (auto const& test: m_tests)
189189
_stream << formatFunctionCallTest(test, _linePrefix, false, true);
190190

191-
FormattedScope(_stream, _formatted, {BOLD, CYAN}) << _linePrefix << "Obtained result:" << endl;
191+
AnsiColorized(_stream, _formatted, {BOLD, CYAN}) << _linePrefix << "Obtained result:" << endl;
192192
for (auto const& test: m_tests)
193193
_stream << formatFunctionCallTest(test, _linePrefix, true, true);
194194

195-
FormattedScope(_stream, _formatted, {BOLD, RED}) << _linePrefix
195+
AnsiColorized(_stream, _formatted, {BOLD, RED}) << _linePrefix
196196
<< "Attention: Updates on the test will apply the detected format displayed." << endl;
197197
return false;
198198
}

test/libsolidity/SemanticTest.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
#pragma once
1616

1717
#include <test/libsolidity/util/TestFileParser.h>
18-
#include <test/libsolidity/FormattedScope.h>
1918
#include <test/libsolidity/SolidityExecutionFramework.h>
2019
#include <test/libsolidity/AnalysisFramework.h>
2120
#include <test/TestCase.h>
2221
#include <liblangutil/Exceptions.h>
22+
#include <libdevcore/AnsiColorized.h>
2323

2424
#include <iosfwd>
2525
#include <string>

test/tools/isoltest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ int main(int argc, char *argv[])
338338
bool formatted = true;
339339
po::options_description options(
340340
R"(isoltest, tool for interactively managing test contracts.
341-
Usage: isoltest [Options] --testpath path --ipcpath ipcpath
341+
Usage: isoltest [Options] --ipcpath ipcpath
342342
Interactively validates test contracts.
343343
344344
Allowed options)",

0 commit comments

Comments
 (0)