[Core] Adding missing checks to test_dofs and document it#11568
Merged
loumalouomega merged 2 commits intomasterfrom Sep 18, 2023
Merged
[Core] Adding missing checks to test_dofs and document it#11568loumalouomega merged 2 commits intomasterfrom
test_dofs and document it#11568loumalouomega merged 2 commits intomasterfrom
Conversation
philbucher
approved these changes
Sep 18, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 Description
This PR adds testing for the
IsFixedmethods intest_dofs. Also adds a test forFreemethod.In addition, the PR adds documentation to the following methods from
test_dofs:SetUpTestModelPart Method: A method called
__SetUpTestModelPartis added to set up a test ModelPart with nodes and DOFs.testDofExport Method: This test case checks the export of DOF information. It creates a ModelPart with nodes and DOFs, exports and manipulates DOFs, and performs various assertions.
testDofListValues Method: This test case focuses on DOF list values and manipulation. It creates a ModelPart with nodes and DOFs, creates a DOF list, sets and retrieves values, and performs assertions.
testDofListAppend Method: This test case checks the appending of DOFs to a list. It creates a ModelPart with nodes and DOFs and appends DOFs to a list, asserting the length of the list.
testDofListUnique Method: This test case examines making a DOF list unique. It creates a ModelPart with nodes and DOFs, appends multiple copies of the same DOF to a list, makes the list unique, and asserts its length.
🆕 Changelog