mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 05:22:33 +02:00
should be inclusive (#904)
* should be inclusive * changed tests due to spans being different
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user