premise_rust_lib/lib.rs
1//! A minimal Rust library generated from the `premise-rust-lib` template.
2
3/// Returns the premise greeting.
4pub fn hello_premise() -> &'static str {
5 "hello premise"
6}
7
8#[cfg(test)]
9mod tests {
10 use super::*;
11
12 #[test]
13 fn hello_premise_returns_greeting() {
14 assert_eq!(hello_premise(), "hello premise");
15 }
16}