Skip to content

Commit f31f999

Browse files
committed
Replace main() with unit test. This converts the project from a binary to a library
1 parent d3fac0f commit f31f999

2 files changed

Lines changed: 13 additions & 9 deletions

File tree

src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
extern crate base64;
2+
extern crate ring;
3+
4+
mod string_encryption_key_based_symmetric;
5+
6+
#[cfg(test)]
7+
mod tests {
8+
#[test]
9+
fn it_works() {
10+
// This test simply simply runs all the examples to ensure that they compile and work.
11+
::string_encryption_key_based_symmetric::main();
12+
}
13+
}

src/main.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)