mirror of
https://github.com/louisrubet/rpn
synced 2025-01-17 06:12:09 +01:00
#5: changes due to stack refactoring
This commit is contained in:
parent
7de1177570
commit
d175626a9d
1 changed files with 2 additions and 2 deletions
|
@ -97,10 +97,10 @@ void program::test()
|
||||||
string stack_should_be = entry.substr(stack_value.size());
|
string stack_should_be = entry.substr(stack_value.size());
|
||||||
string stack_is;
|
string stack_is;
|
||||||
string tmp;
|
string tmp;
|
||||||
for (int i = (int)stk.size() - 1; i >= 0; i--)
|
for (int i = 0; i < (int)stk.size(); i++)
|
||||||
{
|
{
|
||||||
stringstream os;
|
stringstream os;
|
||||||
if (i < (int)(stk.size() - 1))
|
if (i > 0)
|
||||||
stack_is += ", ";
|
stack_is += ", ";
|
||||||
((object*)stk.seq_obj(i))->show(os);
|
((object*)stk.seq_obj(i))->show(os);
|
||||||
getline(os, tmp);
|
getline(os, tmp);
|
||||||
|
|
Loading…
Reference in a new issue