Skip to content

Commit

Permalink
refactor: lib.rs cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukáš Chudíček committed Nov 12, 2023
1 parent f76087e commit 990a37a
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
pub use prototype::reachability_benchmark; // this is the only one that should be publicly exported for now

pub mod prelude; // not `prelude::*`; we want to be explicit about what we import
mod prototype;
mod symbolic_domain;

// TODO:
// Once this becomes a library, this needs to become private, but for now it is convenient
// to have it accessible from outside binaries.
pub mod test_utils;

pub fn add(x: i32, y: i32) -> i32 {
x + y
}

// expose the prototype module
mod prototype;

#[cfg(test)]
mod tests {
use crate::prototype::{Expression, UpdateFn};

use super::add;

#[test]
pub fn test() {
assert_eq!(5, add(2, 3));
}

#[test]
pub fn test_expression() {
// let xml = r#"<apply> // too basic
Expand Down

0 comments on commit 990a37a

Please sign in to comment.