Rename to piar

This commit is contained in:
2016-06-07 17:39:08 +02:00
parent 75b63a9a78
commit 7309717303
3 changed files with 14 additions and 2 deletions

2
Cargo.lock generated
View File

@@ -1,5 +1,5 @@
[root]
name = "picomp"
name = "piar"
version = "0.1.0"
dependencies = [
"byteorder 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@@ -1,5 +1,5 @@
[package]
name = "picomp"
name = "piar"
version = "0.1.0"
authors = ["logaritmisk <anders.e.olsson@gmail.com>"]

View File

@@ -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));
}
}