#@ load("@ytt:assert", "assert")

max_of_int: #@ assert.max(2).check(3)

+++

ERR:
- fail: value > 2
    in lambda
      assert.max:? | __ytt_tplXXX_set_ctx_type("yaml") (generated)
      stdin:1 | #@ load("@ytt:assert", "assert")
    in <toplevel>
      stdin:3 | max_of_int: #@ assert.max(2).check(3)