14 lines
646 B
Elixir
14 lines
646 B
Elixir
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)
|