Перейти к содержимому
Топаз6.0 · До релиза
Загрузка →

Поиск в документации

Спецификация 6.0

Выберите результат стрелками и нажмите Enter, чтобы открыть его.

Введите имя API, номер диагностики, правило или тему проекта.

    Диагностика TPZ5801

    The program is valid canonical Topaz, but the selected usage profile narrows this form out of its admitted surface.

    Diagnostic and cause

    Ссылка

    Form is disallowed by the selected profile

    Семейство
    topaz
    Этап
    profile
    Код
    TPZ5801

    Причина и условия

    The agent-pack profile rejects the canonical std.test.assert import with TPZ5801. The test-profile profile admits that import and call in language mode 5.21.

    Действия

    Use test-profile when the task requires its canonical assertion operation, or remove the test-framework use from an agent-pack program.

    Compiler phase: profile.

    Compiler explanation: The program is valid canonical Topaz, but the selected usage profile narrows this form out of its admitted surface.

    Message templates are Pending. The explanation above is not an observed CLI message.

    The agent-pack profile rejects the canonical std.test.assert import with TPZ5801. The test-profile profile admits that import and call in language mode 5.21.

    Правилоdiagnostics.tpz5801.p5.rule

    Canonical assertion depends on the selected profile

    The agent-pack profile rejects the canonical std.test.assert import with TPZ5801. The test-profile profile admits that import and call in language mode 5.21.

    Response

    Ссылка

    Use test-profile when the task requires its canonical assertion operation, or remove the test-framework use from an agent-pack program.

    Reproduction and verification

    Ссылка

    Rejected program

    Ссылка
    example.tpzRejected programОткрыть песочницу →
    1. import std.test { assert }
    2. assert(true)
    Ожидаемый выводНенулевой код завершения
    Нет стандартного вывода.
    $ topaz check example.tpz --profile agent-pack · Целевой продукт 5.21.3
    Ожидаемый результат

    Ожидаемый результат

    Этап отклонения profile. Ненулевой код завершения.

    The required finding points at the std.test import; the call may add another profile finding. Both programs explicitly import assert. Their fixture and invocation identities differ from the old bare-assert candidate, so its receipt is not reused. Successful check stdout is not asserted.

    Repaired program

    Ссылка
    example.tpzRepaired programОткрыть песочницу →
    1. import std.test { assert }
    2. assert(true)
    Ожидаемый выводКод завершения 0
    $ topaz check example.tpz --profile test-profile · Целевой продукт 5.21.3
    Ожидаемый результат

    Ожидаемый результат

    Проверка принимает программу. Код завершения 0.

    The required finding points at the std.test import; the call may add another profile finding. Both programs explicitly import assert. Their fixture and invocation identities differ from the old bare-assert candidate, so its receipt is not reused. Successful check stdout is not asserted.

    Меню

    Загрузка →