diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | oso.py | 5 |
2 files changed, 8 insertions, 5 deletions
@@ -174,7 +174,7 @@ list of one. ~~~scenario given server when I run max-client.py 1 -then answer is 0 +then answer is 1 ~~~ ## Find max of a list of two @@ -188,7 +188,7 @@ two elements. ~~~scenario given server when I run max-client.py 5 5 -then answer is 0 +then answer is 5 ~~~ ### List of two numbers in order @@ -196,7 +196,7 @@ then answer is 0 ~~~scenario given server when I run max-client.py 5 6 -then answer is 0 +then answer is 6 ~~~ ### List of two numbers in wrong order @@ -204,7 +204,7 @@ then answer is 0 ~~~scenario given server when I run max-client.py 6 5 -then answer is 1 +then answer is 6 ~~~ @@ -25,4 +25,7 @@ def stop_server(ctx): def answer_is(ctx, index): - pass + assert_eq = globals()["assert_eq"] + runcmd_get_stdout = globals()["runcmd_get_stdout"] + stdout = runcmd_get_stdout(ctx) + assert_eq(stdout.strip(), index) |