leo/tests/expectations/parser/expression/ternary.out

53 lines
1.7 KiB
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
---
2021-04-07 20:01:24 +03:00
namespace: ParseExpression
2021-03-30 01:45:10 +03:00
expectation: Pass
outputs:
- Ternary:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2021-03-30 01:45:10 +03:00
- Ternary:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
if_true:
Ternary:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 4
hi: 13
2021-03-30 01:45:10 +03:00
if_false:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 17
2021-03-30 01:45:10 +03:00
- Ternary:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
2021-03-30 01:45:10 +03:00
if_false:
Ternary:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"a\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
2021-03-30 01:45:10 +03:00
if_true:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"b\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
2021-03-30 01:45:10 +03:00
if_false:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"c\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 8
hi: 17
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 17