Skip to content

Commit

Permalink
Replace main() with unit test. This converts the project from a binar…
Browse files Browse the repository at this point in the history
…y to a library
  • Loading branch information
Philipp91 committed Jul 17, 2018
1 parent d04bc90 commit 50d0d9e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 13 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
extern crate base64;
extern crate ring;

mod string_encryption_key_based_symmetric;

#[cfg(test)]
mod tests {
#[test]
fn it_works() {
// This test simply simply runs all the examples to ensure that they compile and work.
::string_encryption_key_based_symmetric::main();
}
}
9 changes: 0 additions & 9 deletions src/main.rs

This file was deleted.

0 comments on commit 50d0d9e

Please sign in to comment.