slow going

This commit is contained in:
Bel LaPointe
2023-12-27 09:11:04 -05:00
parent f7ca241cbc
commit 62eefeea0f
6 changed files with 145 additions and 67 deletions

View File

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