Skip to content
Snippets Groups Projects
Commit a256bcb4 authored by Igor Kuznetsov's avatar Igor Kuznetsov
Browse files

splitting modules preparation

parent 02e5f70a
Branches
Tags
1 merge request!1414sbroad import
Showing
with 22 additions and 0 deletions
[package]
name = "sbroad-cartridge"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
File moved
File moved
pub fn add(left: usize, right: usize) -> usize {
left + right
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn it_works() {
let result = add(2, 2);
assert_eq!(result, 4);
}
}
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment