test(tvix/eval): Add tests for the Eq laws of Value
Only running 20 cases for now, since Value can get quite big if you let it run for a while. Change-Id: I09ef19da22c789c4869793836c98937c44595340 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6648 Autosubmit: grfn <grfn@gws.fyi> Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
parent
96d869923a
commit
c7faba0c8e
2 changed files with 23 additions and 0 deletions
|
@ -332,3 +332,19 @@ fn type_error(expected: &'static str, actual: &Value) -> ErrorKind {
|
|||
actual: actual.type_of(),
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::properties::eq_laws;
|
||||
use proptest::prelude::ProptestConfig;
|
||||
|
||||
use super::*;
|
||||
|
||||
eq_laws!(
|
||||
Value,
|
||||
ProptestConfig {
|
||||
cases: 20,
|
||||
..Default::default()
|
||||
}
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue