[Spec tests] Add tests for when-expression (p-3, 4)

This commit is contained in:
anastasiia.spaseeva
2019-12-18 13:54:24 +03:00
parent bd979a12de
commit dcfcc9c7b6
22 changed files with 843 additions and 4 deletions
@@ -151,6 +151,40 @@
]
}
},
"4": {
"neg": {
"1": [
{
"specVersion": "0.1-218",
"casesNumber": 4,
"description": " it is possible to replace the else condition with an always-true condition",
"unexpectedBehaviour": false
}
]
},
"pos": {
"1": [
{
"specVersion": "0.1-218",
"casesNumber": 4,
"description": " it is possible to replace the else condition with an always-true condition",
"unexpectedBehaviour": false
}
]
}
},
"3": {
"neg": {
"2": [
{
"specVersion": "0.1-218",
"casesNumber": 2,
"description": "The else condition must also be in the last when entry of when expression, otherwise it is a compile-time error",
"unexpectedBehaviour": false
}
]
}
},
"2": {
"neg": {
"2": [