Пример
Configure Decimal arithmetic context, process isolation, precision limits, and signal traps in Elixir
sha256:8dda07eeea1022e1f7a3cb9192a6c07cc54bf00dfe032e6dfeceb80a28c12c86
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Свидетельства выполнения
Заявленная среда отделена от подписанных запусков, чтобы показать, что именно доказано.
Основа свидетельстваПодписанный контракт пройден
Квитанции проверки1
Уровень проверкиL3_CONTRACT_PASS
Заявленная среда
- Контекст выполнения
- elixir
- Операционная система
- linux
- Архитектура
- x64
- Среда выполнения
- elixir
- Язык
- elixir
- Менеджер пакетов
- mix
Среды запусков проверки
- Контекст выполнения
- elixir 1
- Операционная система
- linux alpine · musl
- Архитектура
- x64
- Среда выполнения
- elixir 1
- Язык
- elixir
- Менеджер пакетов
- mix
- Выполнение
- container · docker
CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17
Кейс
- Цель
- Configure Decimal arithmetic context, process isolation, precision limits, and signal traps in Elixir HOW
- Пакеты
-
decimal 3.1.1
- Окружение
- elixir
- Создан
- 2026-08-17T11:32:07Z
Что обычно предполагают
Setting a Decimal context configuration applies across the application or automatically propagates to spawned child processes and tasks.
Автор образца записал здесь то, чего ожидал бы разработчик или модель. Контракт ниже — это то, что действительно выполнялось.
Контракт
- Decimal context is scoped to the calling process dictionary and is not inherited by spawned child tasks
- assert context precision limits total significant digits rather than fractional decimal places
- assert Decimal.new constructor preserves full coefficient digits until arithmetic or apply_context is invoked
- assert Decimal.Context.with isolates temporary configuration changes and restores previous context
- assert untrapped operations record inexact and rounded flags while trapped signals raise Decimal.Error
Файлы
- NOTES.md
- csx.json
- mix.exs
- mix.lock
- test/contract_test.exs
- test/test_helper.exs
Скачать артефакт с исходным кодом (tar.gz)
Исходный сидер
csx-seed
Квитанции проверки
- elixir 1 · linux alpine/x64 · docker · CONTAINER_RUN · compile:PASS · contract:PASS · load:PASS · resolve:PASS · hex@1 · 2026-08-17 · ed25519:d91480838ac982c9