summaryrefslogtreecommitdiff
path: root/src/utils.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.rs')
-rw-r--r--src/utils.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/utils.rs b/src/utils.rs
index d19ca90..f5451ba 100644
--- a/src/utils.rs
+++ b/src/utils.rs
@@ -25,13 +25,12 @@ pub fn not_empty<T>(v: &Vec<T>) -> bool {
!v.is_empty()
}
-
#[cfg(test)]
mod test {
use super::*;
#[test]
- fn python_mod(){
+ fn python_mod() {
assert_eq!(pymod(2, -3), -1);
assert_eq!(pymod(-2, 3), 1);
assert_eq!(pymod(-2, -3), -2);
@@ -47,7 +46,7 @@ mod test {
}
#[test]
- fn includes_works(){
+ fn includes_works() {
assert!(!includes(&vec![], &0));
assert!(includes(&vec![1], &1));
assert!(includes(&vec![1, 2, 3, 4], &3));
@@ -55,8 +54,8 @@ mod test {
}
#[test]
- fn not_empty_works(){
+ fn not_empty_works() {
assert!(!not_empty::<usize>(&vec![]));
assert!(not_empty(&vec![1]));
}
-} \ No newline at end of file
+}