Rename to piar
This commit is contained in:
12
src/bbp.rs
12
src/bbp.rs
@@ -91,3 +91,15 @@ fn expm(p: f64, ak: f64) -> f64 {
|
||||
|
||||
r
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests { // TODO: use a tests directory instead?
|
||||
use super::get_byte;
|
||||
|
||||
#[test]
|
||||
fn test_get_byte() {
|
||||
assert_eq!(36, get_byte(0));
|
||||
assert_eq!(163, get_byte(10));
|
||||
assert_eq!(41, get_byte(100));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user