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

Beginning to deepcopy workspace #520

Merged
merged 6 commits into from
Sep 13, 2022

Conversation

riclarsson
Copy link
Contributor

No description provided.

@riclarsson riclarsson marked this pull request as ready for review September 12, 2022 13:42
@riclarsson
Copy link
Contributor Author

@erikssonpatrick This is what you asked for: deep copies of the workspace. I only tested it on some very simple stuff though, as I as of now have no use for this so no test case set up.

Copy link
Member

@olemke olemke left a comment

Choose a reason for hiding this comment

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

At least a minimal test cases should be included. Nothing fancy, but at least something that verifies the intended behaviour. Something like:

  • Create a workspace
  • Set one variable to a known value
  • Make a deep-copy
  • Change the variable value in the original workspace
  • Verify that the variable in the copied workspace still has the correct, original value

@erikssonpatrick
Copy link
Contributor

Just a clarification. I asked about this, but that was under the assumption that the feature existed. I got that impression from some discussion.

@riclarsson
Copy link
Contributor Author

@olemke This now has the tests you requested.

@riclarsson riclarsson merged commit 7c731ad into atmtools:master Sep 13, 2022
@riclarsson riclarsson deleted the copy-workspace branch September 13, 2022 09:43
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.

None yet

3 participants