[Spec tests] Add tests for expressions and statements

This commit is contained in:
anastasiia.spaseeva
2020-01-10 17:00:43 +03:00
committed by Victor Petukhov
parent 5f4a94a1b3
commit 5986ffae1e
108 changed files with 4221 additions and 26 deletions
@@ -1,7 +1,44 @@
{
"1": {
"neg": {
"2": [
{
"specVersion": "0.1-222",
"casesNumber": 4,
"description": "Both left-hand and right-hand sides of an assignment must be expressions",
"unexpectedBehaviour": false
}
]
}
},
"2": {
"neg": {
"1": [
{
"specVersion": "0.1-222",
"casesNumber": 3,
"description": "Check the expression is not assignable if a navigation expression referring to an unmutable property",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-222",
"casesNumber": 2,
"description": "Check the expression is not assignable if an identifier referring to an unmutable property",
"unexpectedBehaviour": false
}
]
}
},
"3": {
"neg": {
"2": [
{
"specVersion": "0.1-222",
"casesNumber": 3,
"description": "Check the expression is not assignable if a navigation expression referring to an unmutable property",
"path": "compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg/1.2.kt",
"unexpectedBehaviour": false
},
{
"specVersion": "0.1-213",
"casesNumber": 2,
@@ -16,6 +53,15 @@
"path": "compiler/tests-spec/testData/diagnostics/linked/expressions/prefix-expressions/prefix-decrement-expression/p-4/neg/1.1.kt",
"unexpectedBehaviour": false
}
],
"1": [
{
"specVersion": "0.1-222",
"casesNumber": 2,
"description": "Check the expression is not assignable if an identifier referring to an unmutable property",
"path": "compiler/tests-spec/testData/diagnostics/linked/statements/assignments/p-2/neg/1.1.kt",
"unexpectedBehaviour": false
}
]
}
}