-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathout.txt
189 lines (147 loc) · 3.03 KB
/
out.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
COMMAND DISPATCHER: STARTED
CommandDispatcher: addCommandHandler: help
CommandDispatcher: addCommandHandler: exit
CommandDispatcher: addCommandHandler: sum_ints
CommandDispatcher: addCommandHandler: query_payload
CommandDispatcher: addCommandHandler: mean_ints
CommandDispatcher: addCommandHandler: help
Command help already existed. Addition failed
COMMAND:
{
"command":"fail",
"payload": {
"Does not":"really matter what is in here."
}
}
EXCEPTION: Oops, no match for command found in map. Please try again.
COMMAND:
{
"command":"help",
"payload": {
"usage":"Enter json command in 'command':'<command>','payload': { // json payload of arguments }"
}
}
Controller::help: command:
Enter json command in 'command':'<command>','payload': { // json payload of arguments }
COMMAND:
{
"command":"help",
"payload": {
"reason":"Not usage."
}
}
Controller::help: command:
EXCEPTION: Oops, no member "usage" present in payload JSON. Please try again.
COMMAND:
{
"command": "sum_ints",
"payload": {
"addends": [1, 2, 3]
}
}
Controller::sum_ints command:
6
COMMAND:
{
"command": "sum_ints",
"payload": {
"addends": [1, 2, 3, 4, 5, 100, 999999999, -1, 0, -999]
}
}
Controller::sum_ints command:
999999114
COMMAND:
{
"command": "sum_ints",
"payload": {
"addends": [1, 2, 3, 4.5, 5.0, 100.1, 999999999.1, -1.1, 0, -999.1]
}
}
Controller::sum_ints command:
6
COMMAND:
{
"command": "sum_ints",
"payload": {
"addends": ["apples", "oranges", "turtles"]
}
}
Controller::sum_ints command:
EXCEPTION: Oops, no integers in array. Please try again.
COMMAND:
{
"command": "sum_ints",
"payload": {
"well":"formed",
"json":"test"
}
}
Controller::sum_ints command:
EXCEPTION: Oops, no member "addends" present in payload JSON. Please try again.
COMMAND:
{
"command": "mean_ints",
"payload": {
"addends": [1, 2, 3, 4, 5]
}
}
Controller::mean_ints command:
3
COMMAND:
{
"command": "mean_ints",
"payload": {
"addends": [1, 2, 2]
}
}
Controller::mean_ints command:
1
COMMAND:
{
"command": "mean_ints",
"payload": {
"addends": [1, 2, 3, 4, 5, 100, 999999999, -1, 0, -999]
}
}
Controller::mean_ints command:
99999911
COMMAND:
{
"command": "query_payload",
"payload": {
"hello": "world",
"t": true ,
"f": false,
"n": null,
"i": 123,
"pi": 3.1416,
"a": [1, 2, 3, 4]
}
}
Controller::payload_type command:
Type of member hello is String
Type of member t is True
Type of member f is False
Type of member n is Null
Type of member i is Number
Type of member pi is Number
Type of member a is Array
COMMAND:
{
"command":"exit",
"payload": {
"booga":"gooba"
}
}
Controller::exit: command:
EXCEPTION: Oops, no member "reason" present in payload JSON. Please try again.
COMMAND:
{
"command":"exit",
"payload": {
"reason":"Exiting program on user request."
}
}
Controller::exit: command:
Exiting program on user request.
COMMAND DISPATCHER: ENDED