サンプル
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
- OS
- linux
- アーキテクチャ
- x64
- ランタイム
- elixir
- 言語
- elixir
- パッケージマネージャー
- mix
検証実行環境
- 実行コンテキスト
- elixir 1
- OS
- 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