Scientist v0.1.0 Scientist.Observation

Summary

Functions

Returns true if the observations match with the compare function

Re-raises or throws the exception that occurred during observation, if any

Returns true if the observation threw or raised an exception

Creates a new observation for the experiment

Returns true if the observation raised an exception

Returns true if the observation threw an exception

Functions

equivalent?(observation, other, compare \\ &Kernel.==/2)

Returns true if the observations match with the compare function.

Defaults to comparing by a direct equality.

except!(observation)

Re-raises or throws the exception that occurred during observation, if any.

except?(arg1)

Returns true if the observation threw or raised an exception.

new(experiment, name, observable)

Creates a new observation for the experiment.

Evaluates observable, capturing any exceptions raised.

raised?(arg1)

Returns true if the observation raised an exception.

thrown?(arg1)

Returns true if the observation threw an exception.