Skip to content

Give acceptable range on assertion failure #78

@gsnedders

Description

@gsnedders

Currently, the output is indistinguishable from assert_eq!'s:

thread 'bsf::tests::score_examples' panicked at 'assert_ulps_eq!(scores[0], 590.0798357956826, max_ulps = 1)

    left  = 590.0798357956824
    right = 590.0798357956826

', src/bsf.rs:354:9

It would be nicer to give allowable ranges for both left/right based on the variance allowed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions