tabularlib/lib.rs
1/*This file is part of Tabularlib.
2
3Tabularlib is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4
5Tabularlib is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
6
7You should have received a copy of the GNU General Public License along with Tabularlib. If not, see <https://www.gnu.org/licenses/>. */
8
9pub mod interp;
10pub mod memo;
11pub mod math;
12
13pub fn add(left: u64, right: u64) -> u64 {
14 left + right
15}
16
17#[cfg(test)]
18mod tests {
19 use super::*;
20
21 #[test]
22 fn it_works() {
23 let result = add(2, 2);
24 assert_eq!(result, 4);
25 }
26}