chore: rename project and lib crate
This commit is contained in:
11
01.workspace/oxidice_lib/src/tst/die_roll.rs
Normal file
11
01.workspace/oxidice_lib/src/tst/die_roll.rs
Normal file
@@ -0,0 +1,11 @@
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use crate::*;
|
||||
#[test]
|
||||
pub fn die_roll_should_always_stay_inside_range() {
|
||||
let die = Die::new(6);
|
||||
for _ in 1..=10000 {
|
||||
assert!(die.roll() < 6);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user