slow going
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
pub mod video;
|
||||
|
||||
pub fn add(left: usize, right: usize) -> usize {
|
||||
left + right
|
||||
pub fn analyze(file: &str) -> String {
|
||||
match _analyze(file) {
|
||||
Ok(result) => result,
|
||||
Err(msg) => msg,
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn it_works() {
|
||||
let result = add(2, 2);
|
||||
assert_eq!(result, 4);
|
||||
}
|
||||
fn _analyze(file: &str) -> Result<String, String> {
|
||||
eprintln!("analyzing {}", file);
|
||||
Err(format!("not impl"))
|
||||
}
|
||||
|
||||
pub fn clipify(file: &str) -> String {
|
||||
match _clipify(file) {
|
||||
Ok(result) => result,
|
||||
Err(msg) => msg,
|
||||
}
|
||||
}
|
||||
|
||||
fn _clipify(file: &str) -> Result<String, String> {
|
||||
eprintln!("clipifying {}", file);
|
||||
Err(format!("not impl"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user