pub struct AssertEqualOptions {
pub check_dtype: bool,
pub check_index_type: bool,
pub check_names: bool,
pub check_exact: bool,
pub check_like: bool,
pub rtol: f64,
pub atol: f64,
}Expand description
Configuration options for testing assertions matching pandas pandas.testing kwargs.
Fields§
§check_dtype: boolWhether to check that dtypes match exactly (default: true).
check_index_type: boolWhether to check that index types match (default: true).
check_names: boolWhether to check column names and index/series names (default: true).
check_exact: boolWhether to require exact float equality instead of using rtol/atol (default: false).
check_like: boolWhether to ignore row and column order (default: false).
rtol: f64Relative tolerance for floating-point comparisons (default: 1e-5).
atol: f64Absolute tolerance for floating-point comparisons (default: 1e-8).
Implementations§
Source§impl AssertEqualOptions
impl AssertEqualOptions
Sourcepub fn with_check_dtype(self, check: bool) -> Self
pub fn with_check_dtype(self, check: bool) -> Self
Configure whether to verify dtypes match.
Sourcepub fn with_check_index_type(self, check: bool) -> Self
pub fn with_check_index_type(self, check: bool) -> Self
Configure whether to verify index types match.
Sourcepub fn with_check_names(self, check: bool) -> Self
pub fn with_check_names(self, check: bool) -> Self
Configure whether to verify column/series/index names match.
Sourcepub fn with_check_exact(self, check: bool) -> Self
pub fn with_check_exact(self, check: bool) -> Self
Configure whether to require exact floating-point equality.
Sourcepub fn with_check_like(self, check: bool) -> Self
pub fn with_check_like(self, check: bool) -> Self
Configure whether to ignore row and column order.
Sourcepub fn with_tolerance(self, rtol: f64, atol: f64) -> Self
pub fn with_tolerance(self, rtol: f64, atol: f64) -> Self
Set relative and absolute tolerances for float comparison.