Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
fd13a655
"platforms/common/src/IntegrationUtilities.cpp" did not exist on "1afb079f0c28dcdf65518815b8cf828812866914"
Unverified
Commit
fd13a655
authored
Mar 30, 2022
by
Peter Eastman
Committed by
GitHub
Mar 30, 2022
Browse files
Added a few Lepton tests (#3538)
parent
b1edd922
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/TestParser.cpp
tests/TestParser.cpp
+3
-0
No files found.
tests/TestParser.cpp
View file @
fd13a655
...
...
@@ -268,6 +268,9 @@ int main() {
verifyEvaluation
(
"atan2(x, y)"
,
3.0
,
1.5
,
std
::
atan
(
2.0
));
verifyEvaluation
(
"sqrt(x^2)"
,
-
2.2
,
0.0
,
2.2
);
verifyEvaluation
(
"sqrt(x)^2"
,
2.2
,
0.0
,
2.2
);
verifyEvaluation
(
"x^2+x^4"
,
2.0
,
0.0
,
20.0
);
verifyEvaluation
(
"x^-2+x^-3"
,
2.0
,
0.0
,
0.375
);
verifyEvaluation
(
"x^1.8"
,
2.2
,
0.0
,
std
::
pow
(
2.2
,
1.8
));
verifyInvalidExpression
(
"1..2"
);
verifyInvalidExpression
(
"1*(2+3"
);
verifyInvalidExpression
(
"5++4"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment