-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #182 from scipopt/partial-test-60
Some tests avoided on < 7.0
- Loading branch information
Showing
3 changed files
with
28 additions
and
15 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
|
||
function camel_case_to_snake_case(x::AbstractString) | ||
# from https://stackoverflow.com/questions/1175208/elegant-python-function-to-convert-camelcase-to-snake-case | ||
s1 = replace(x, r"(.)([A-Z][a-z]+)" => s"\1_\2") | ||
return lowercase(replace(s1, r"([a-z0-9])([A-Z])" => s"\1_\2")) | ||
end | ||
|
||
""" | ||
SCIP_versionnumber() -> VersionNumber | ||
Current version of the SCIP binary | ||
""" | ||
function SCIP_versionnumber() | ||
major = SCIPmajorVersion() | ||
minor = SCIPminorVersion() | ||
patch = SCIPtechVersion() | ||
return VersionNumber(major, minor, patch) | ||
end |
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