Skip to content

Commit

Permalink
added client and error files
Browse files Browse the repository at this point in the history
  • Loading branch information
morukele committed May 21, 2023
1 parent 14393b9 commit eac9993
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
Empty file added src/client.rs
Empty file.
Empty file added src/error.rs
Empty file.
26 changes: 2 additions & 24 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,2 @@
pub fn add(left: usize, right: usize) -> usize {
left + right
}

pub fn divide(left: usize, right: usize) -> usize {
left / right
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
fn add_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}

#[test]
fn divide_works() {
let result = divide(2, 2);
assert_eq!(result, 1);
}
}
pub mod client;
pub mod error;

0 comments on commit eac9993

Please sign in to comment.