Saltearse al contenido
Developer Preview — APIs and language features may change before 1.0

test

Esta página aún no está disponible en tu idioma.

test

A named test case under verifies

Children

Translations

  • es: prueba
  • fr: test
  • en: test
  • de: Test
  • ja: テスト
  • zh: 测试
  • ko: 테스트

Example — A simple decision

Checks an order total and decides whether it needs a human to look at it.

machine order_check
accepts
total as number, is required
responds with
approved as boolean
reason as text
implements
decide review
when input.total > 1000
{approved: false, reason: "needs review"}
otherwise
{approved: true, reason: "auto approved"}
verifies
test "large orders need review"
given {total: 5000}
expect {approved: false}