☰
Debian Codegraph
@
1.9.4-7
1.9.4-6
/
/
test-crates
/
pyo3-pure
/
local-test
/
src
/
lib.rs
☽
☼
test-crates/pyo3-pure/local-test/src/lib.rs
code
plain
raw
MIT
or
Apache-2.0
2018-2023 PyO3 Project and Contributors <https://github.com/PyO3>
debian/copyright
1
pub fn add(left: usize, right: usize) -> usize {
2
left + right
3
}
4
5
#[cfg(test)]
6
mod tests {
7
use super::*;
8
9
#[test]
10
fn it_works() {
11
let result = add(2, 2);
12
assert_eq!(result, 4);
13
}
14
}