{
"@context": "https://nxdlang.org/schema",
"doc_id": "PT131",
"title": "PT131 - Intentional Failures",
"description": "Intentional Test Failures",
"layer": "Passed Tests",
"category": "Passed Tests - Nim",
"keywords": [Nim, Pass, Test],
"doc_version": "1.0",
"status": "active"
}
# PT131 Intentional Failure
### NXD Sample:
```nxd
MODULE TEST
FUNC MAIN() {
CONST STATE SET "READY"
MATCH STATE:
CASE "READY":
PRINTLN("GO")
CASE "WAIT":
PRINTLN("HOLD")
OTHERWISE:
PRINTLN("UNKNOWN")
}
```
### Result:
FAIL
### Expected Output:
FAIL - Malformed map litteral
### Expected Rejection Stage:
[ ] Lexer
[X] Parser
[ ] AST
[ ] IR
[ ] Semantics
[ ] Backend
### Actual Output:
N/A
### Notes:
intentional Parser failure. no IR JSON generated. Parser entered map literal parsing and expected a valid map key.
Encountered CONST keyword instead.
Documentation