-
Notifications
You must be signed in to change notification settings - Fork 73
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
Negative unit test for bad patches #197
Open
JackMaguire
wants to merge
9
commits into
RosettaCommons:main
Choose a base branch
from
JackMaguire:patch_message
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+55
−0
Open
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
fb1b184
Warning for bad patches
JackMaguire 66c74f2
Create bad_atom_ordering.patch
JackMaguire 092260f
Created unit test for bad atom ordering
JackMaguire 80e38de
bad_atom_ordering.patch
JackMaguire cb021a9
typo fix
JackMaguire c69d7f6
TS_ASSERT_THROWS_ANYTHING
JackMaguire 5898974
Merge branch 'RosettaCommons:main' into patch_message
JackMaguire 35bd3c5
Remove Whitespace
JackMaguire b59a8ff
tabs instead of spaces
JackMaguire File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
NAME AddVirtualAtoms | ||
TYPES ADD_VIRTUAL_ATOMS | ||
BEGIN_SELECTOR | ||
# This patch can be applied to any residue type | ||
END_SELECTOR | ||
BEGIN_CASE | ||
BEGIN_SELECTOR | ||
# This case applies to all residues | ||
END_SELECTOR | ||
ADD_ATOM V0 VIRT VIRT 0.00 | ||
ADD_BOND OG1 V0 | ||
SET_ICOOR V0 1.00000000 1.00000000 1.00000000 OG1 CB CA | ||
ADD_ATOM V1 VIRT VIRT 0.00 | ||
ADD_BOND N V1 | ||
SET_ICOOR V1 1.00000000 1.00000000 1.00000000 N CA C | ||
ADD_ATOM V2 VIRT VIRT 0.00 | ||
ADD_BOND O V2 | ||
SET_ICOOR V2 1.00000000 1.00000000 1.00000000 O C CA | ||
ADD_ATOM V3 VIRT VIRT 0.00 | ||
ADD_BOND C V3 | ||
SET_ICOOR V3 1.00000000 1.00000000 1.00000000 C CA N | ||
ADD_ATOM V4 VIRT VIRT 0.00 | ||
ADD_BOND 1HG2 V4 | ||
SET_ICOOR V4 1.00000000 1.00000000 1.00000000 1HG2 CG2 CB | ||
END_CASE |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might recommend
TS_ASSERT_THROWS_ANYTHING()
(and/orTS_ASSERT_THROWS_NOTHING()
) -- seetest/core/scoring/ScoreFunctionFactory.cxxtest.hh
for example usage.