Skip to content

Hay 11 unit test#38

Open
llandsmeer wants to merge 3 commits intothorstenhater:mainfrom
llandsmeer:hay11unit
Open

Hay 11 unit test#38
llandsmeer wants to merge 3 commits intothorstenhater:mainfrom
llandsmeer:hay11unit

Conversation

@llandsmeer
Copy link
Copy Markdown
Collaborator

No actual numerical validation, just

  • test if we can compile it
  • test if we can run it

@llandsmeer llandsmeer requested a review from thorstenhater March 9, 2023 15:14
Copy link
Copy Markdown
Owner

@thorstenhater thorstenhater left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, nice addition. Minor comments.

use tempfile;

fn get_runtime_types(lems: &mut LemsFile, nml: &[String]) -> Result<()> {
// from main.rs .. should import actually
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please make a export for it.

.args(["run.sh", "network_L5bPyrCellHayEtAl2011"])
.current_dir(tmpdir.path())
.status()?;
tmpdir.close()?;
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we do a bit better than just checking it doesn't crash? Example:
Check (with tolerance!) against a known trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants