Trait Test

Source
pub trait Test<const DAY: u8>: Solution<DAY> {
    // Provided method
    fn expected(part: bool) -> Self::Output { ... }
}
Expand description

Interface for testing Advent of Code puzzle solutions.

See the getting started guide for more information.

Provided Methods§

Source

fn expected(part: bool) -> Self::Output

Provides the expected results for the official test case.

The default implementation of this method panics, so it should overriden with the actual expected values for tests to work.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§