summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-05-29 20:53:58 +0300
committerLars Wirzenius <liw@liw.fi>2021-05-29 20:53:58 +0300
commit502b224a0b723504414dfc6de920edd4ab3673c3 (patch)
tree7fbd7747792958bd89023277f40b2a09b0cf49c9
parentfc07876486f75b41a17ce8c692c28f79a510e1ac (diff)
downloadoso-work-sample-502b224a0b723504414dfc6de920edd4ab3673c3.tar.gz
test: add scenario for three elements
Sponsored-by: author
-rw-r--r--README.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/README.md b/README.md
index 60d9615..18437c5 100644
--- a/README.md
+++ b/README.md
@@ -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&mdash;MAX"