diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-05-29 20:53:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-05-29 20:53:58 +0300 |
commit | 502b224a0b723504414dfc6de920edd4ab3673c3 (patch) | |
tree | 7fbd7747792958bd89023277f40b2a09b0cf49c9 | |
parent | fc07876486f75b41a17ce8c692c28f79a510e1ac (diff) | |
download | oso-work-sample-502b224a0b723504414dfc6de920edd4ab3673c3.tar.gz |
test: add scenario for three elements
Sponsored-by: author
-rw-r--r-- | README.md | 40 |
1 files changed, 40 insertions, 0 deletions
@@ -196,6 +196,46 @@ when I run max-client.py 6 5 then answer is 6 ~~~ +## Find max of a list of three + +These scenarios verify that the server finds the maximum integer in a +list of two. There is a separate scenario for every possible list of +two elements. + +~~~scenario +given server + +when I run max-client.py 5 5 5 +then answer is 5 + +when I run max-client.py 5 5 6 +then answer is 6 + +when I run max-client.py 5 6 5 +then answer is 6 + +when I run max-client.py 6 5 5 +then answer is 6 + +when I run max-client.py 5 6 7 +then answer is 7 + +when I run max-client.py 5 7 6 +then answer is 7 + +when I run max-client.py 6 5 7 +then answer is 7 + +when I run max-client.py 6 7 5 +then answer is 7 + +when I run max-client.py 7 5 6 +then answer is 7 + +when I run max-client.py 7 6 5 +then answer is 7 +~~~ + --- title: "OSO work sample—MAX" |