Skip to content

Commit

Permalink
Document function
Browse files Browse the repository at this point in the history
  • Loading branch information
lixitrixi committed Nov 22, 2023
1 parent 7c719cc commit 455f080
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions conjure_oxide/src/find_conjure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ use versions::Versioning;
const CONJURE_MIN_VERSION: &str = "2.5.1";
const CORRECT_FIRST_LINE: &str = "Conjure: The Automated Constraint Modelling Tool";

/// Checks if the conjure executable is present in PATH and if it is the correct version.
/// Returns () on success and an error on failure.
pub fn conjure_executable() -> Result<()> {
let mut cmd = std::process::Command::new("conjure");
let output = cmd.arg("--version").output()?;
Expand Down
1 change: 0 additions & 1 deletion conjure_oxide/tests/generated_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ fn sort_json_variables(value: &Value) -> Value {
}
}


#[test]
fn assert_conjure_present() {
conjure_oxide::find_conjure::conjure_executable().unwrap();
Expand Down

0 comments on commit 455f080

Please sign in to comment.