Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed May 15, 2024
1 parent 775d567 commit 00f9688
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions russell_ode/src/system.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ mod tests {
use russell_sparse::{CooMatrix, Sym};

#[test]
fn ode_system_most_none_works() {
fn ode_system_works() {
struct Args {
n_function_eval: usize,
more_data_goes_here: bool,
Expand Down Expand Up @@ -281,7 +281,7 @@ mod tests {
}

#[test]
fn ode_system_some_none_works() {
fn ode_system_set_jacobian_works() {
struct Args {
n_function_eval: usize,
n_jacobian_eval: usize,
Expand Down Expand Up @@ -348,5 +348,9 @@ mod tests {
system.mass_put(0, 0, 1.0).err(),
Some("mass matrix has not been initialized/enabled")
);
assert_eq!(
system.init_mass_matrix(1).err(),
Some("the Jacobian function must be enabled first")
);
}
}

0 comments on commit 00f9688

Please sign in to comment.