Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hay 11 unit test #38

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

llandsmeer
Copy link
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
.github/workflows/main.yml Show resolved Hide resolved
tests/test_hay11.rs Show resolved Hide resolved
Copy link
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
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
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