summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/handlers.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/handlers.rs b/src/handlers.rs
index 64a076f11..405fe29da 100644
--- a/src/handlers.rs
+++ b/src/handlers.rs
@@ -10,6 +10,11 @@ fn string_from_ptr(ptr: *const c_char) -> String {
String::from(cstr.to_str().unwrap())
}
+#[test]
+fn test_example() {
+ assert_eq!(2 + 2, 4);
+}
+
#[no_mangle]
pub extern "C" fn handle_code_fetch(
module_specifier: *const c_char,