should be inclusive (#904)

* should be inclusive

* changed tests due to spans being different
This commit is contained in:
Darren Schroeder
2022-01-31 17:02:36 -06:00
committed by GitHub
parent 4c9df9c7c1
commit c80a15cdfe
2 changed files with 4 additions and 13 deletions

View File

@ -84,7 +84,7 @@ fn integer(
Some(Ordering::Equal) => Ok(PipelineData::Value(Value::Int { val: min, span }, None)),
_ => {
let mut thread_rng = thread_rng();
let result: i64 = thread_rng.gen_range(min..max);
let result: i64 = thread_rng.gen_range(min..=max);
Ok(PipelineData::Value(Value::Int { val: result, span }, None))
}