#@ def docs():
---
str
---
123
---
key: 123
#@ end

---
#@ result = docs()[0]
test1: #@ [result, type(result), result == "str"]

#@ result = docs()[1]
test2: #@ [result, type(result), result == 123]

#@ result = docs()[2]
#! TODO comparison
test3: #@ [result, type(result), result == 123]

---
test4

#@ for/end val in docs():
--- #@ val

---
test5: #@ len(docs())

test6: #@ 0 in docs()
test6a: #@ 3 in docs()

+++

test1:
- str
- string
- true
test2:
- 123
- int
- true
test3:
- key: 123
- yamlfragment
- false
---
test4
---
str
---
123
---
key: 123
---
test5: 3
test6: true
test6a: false
