summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-05-29 19:57:41 +0300
committerLars Wirzenius <liw@liw.fi>2021-05-29 19:57:41 +0300
commitd1ac545b0b89ec93ce2e4308aa53e88bd06a9395 (patch)
treed6916503ad103b705a711d55ba2530d82f501f9d
parent8466e748a92eb6898156b5ac0dd03dce5c389a1d (diff)
downloadoso-work-sample-d1ac545b0b89ec93ce2e4308aa53e88bd06a9395.tar.gz
tests: add scenario for list of two identical elements
Sponsored-by: author
-rw-r--r--README.md18
1 files changed, 17 insertions, 1 deletions
diff --git a/README.md b/README.md
index eeb0156..bcc43a9 100644
--- a/README.md
+++ b/README.md
@@ -164,7 +164,9 @@ one it has found so far.
empty list of integers, because there messages as given do no
indicate a way to signal a result of "no result".
-# Find max of a list of one
+# Acceptance criteria
+
+## Find max of a list of one
This scenario verifies that the server finds the maximum integer in a
list of one.
@@ -175,6 +177,20 @@ when I run max-client.py 1
then answer is 0
~~~
+## Find max of a list of two
+
+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.
+
+### List of two identical numbers
+
+~~~scenario
+given server
+when I run max-client.py 5 5
+then answer is 0
+~~~
+
---
title: "OSO work sample&mdash;MAX"