[types] Fix the tests
This commit is contained in:
parent
cc43ffd135
commit
6de9ff6695
1 changed files with 3 additions and 2 deletions
|
@ -90,13 +90,14 @@ impl fmt::Display for Number {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use super::Exact;
|
||||||
use super::Number;
|
use super::Number;
|
||||||
use super::real::Real;
|
use super::real::Real;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn exact_numbers_are_exact() {
|
fn exact_numbers_are_exact() {
|
||||||
assert!(Number::from_int(3, true).is_exact());
|
assert!(Number::from_int(3, Exact::Yes).is_exact());
|
||||||
assert!(!Number::from_int(3, false).is_exact());
|
assert!(!Number::from_int(3, Exact::No).is_exact());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue