mirror of
https://github.com/katanemo/plano.git
synced 2026-05-15 11:02:39 +02:00
initial commit
This commit is contained in:
commit
100114f6d0
5 changed files with 45 additions and 0 deletions
17
envoyfilter/src/main.rs
Normal file
17
envoyfilter/src/main.rs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
fn main() {
|
||||
println!("Hello, world!\nMy favourite number is {}", some_fn());
|
||||
}
|
||||
|
||||
fn some_fn() -> i32 {
|
||||
42
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
#[test]
|
||||
fn some_fn_is_42() {
|
||||
assert_eq!(some_fn(), 42);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue