-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathordreappel-4-1.feature
55 lines (50 loc) · 2.17 KB
/
ordreappel-4-1.feature
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
# Copyright (C) 2018 José Paumard
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
@ordreappel
Feature: Algorithme de calcul de l'ordre d'appel section 4.1
Calcul de l'ordre d'appel dans un groupe soumis
au seul taux minimum de boursier-ère-s.
L'algorithme est défini par une relation de récurrence,
il suffit donc de constater qu'il fonctionne à un rang
particulier pour prouver qu'il est implémenté conformément
à la spécification.
La convention est la suivante :
- C est un-e candidat-e non boursier-ère
- B est un-e candidat-e boursier-ère
Scenario Template: Cas dégénéré d'une liste d'un-e seul-e candidat-e
Given les candidat-e-s sont <liste_candidats>
And le taux minimum de boursier-ère-s est <qb>
When l'appel est calculé
Then l'ordre d'appel est <ordre_appel>
Examples:
| qb | liste_candidats | ordre_appel |
| 0 | B1 | B1 |
| 0 | C1 | C1 |
| 1 | B1 | B1 |
| 1 | C1 | C1 |
Scenario Template: Choix du ou de la premier-ère candidat-e
Given les candidat-e-s sont <liste_candidats>
And le taux minimum de boursier-ère-s est <qb>
When l'appel est calculé
Then l'ordre d'appel est <ordre_appel>
Examples:
| qb | liste_candidats | ordre_appel |
| 0 | B1 C2 | B1 C2 |
| 0 | C1 B2 | C1 B2 |
| 0 | B1 B2 | B1 B2 |
| 0 | C1 C2 | C1 C2 |
| 1 | B1 C2 | B1 C2 |
| 1 | C1 B2 | B2 C1 |
| 1 | B1 B2 | B1 B2 |
| 1 | C1 C2 | C1 C2 |