20 lines
294 B
Rust
20 lines
294 B
Rust
|
pub mod resource_manager;
|
||
|
pub mod resource;
|
||
|
pub mod texture;
|
||
|
pub mod loader;
|
||
|
|
||
|
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);
|
||
|
}
|
||
|
}
|