exercism/elixir/stack-underflow/test/test_helper.exs

14 lines
646 B
Elixir
Raw Normal View History

2024-03-07 07:05:57 +00:00
options = [
undefined_division_by_zero_error_module:
Code.ensure_compiled(RPNCalculator.Exception.DivisionByZeroError) == {:error, :nofile},
undefined_stack_underflow_error_module:
Code.ensure_compiled(RPNCalculator.Exception.StackUnderflowError) == {:error, :nofile},
undefined_struct_division_by_zero_error_exception:
not function_exported?(RPNCalculator.Exception.DivisionByZeroError, :__struct__, 0),
undefined_struct_stack_underflow_error_exception:
not function_exported?(RPNCalculator.Exception.StackUnderflowError, :__struct__, 0)
]
ExUnit.start(options)
ExUnit.configure(exclude: :pending, trace: true, seed: 0)