47 if (arguments.size() > 1) {
52 if (arguments.size() > 0) {
72 return "Runs one step of the emulation.";
78 return "Runs one step (or multiple single-steps) in the emulation.\n"
80 "See also: continue (to continue without single-stepping)\n";
89 static void Test_StepCommand_Affect_RunState()
92 vector<string> dummyArguments;
99 cmd->Execute(gxemul, dummyArguments);
105 static void Test_StepCommand_GoodArgs()
108 vector<string> arguments;
111 arguments.push_back(
"42");
114 cmd->Execute(gxemul, arguments));
117 static void Test_StepCommand_BadArgs_TooMany()
120 vector<string> arguments;
123 arguments.push_back(
"42");
124 arguments.push_back(
"43");
127 !
cmd->Execute(gxemul, arguments));
130 static void Test_StepCommand_BadArgs_Zero()
133 vector<string> arguments;
136 arguments.push_back(
"0");
139 !
cmd->Execute(gxemul, arguments));
142 static void Test_StepCommand_BadArgs_Negative()
145 vector<string> arguments;
148 arguments.push_back(
"-42");
151 !
cmd->Execute(gxemul, arguments));
156 UNITTEST(Test_StepCommand_Affect_RunState);
157 UNITTEST(Test_StepCommand_GoodArgs);
158 UNITTEST(Test_StepCommand_BadArgs_TooMany);
159 UNITTEST(Test_StepCommand_BadArgs_Zero);
160 UNITTEST(Test_StepCommand_BadArgs_Negative);