Fixed various Coding Contract bugs. Added getContractType() to coding contract API

This commit is contained in:
danielyxie
2018-10-08 19:26:24 -05:00
parent 097c866e6f
commit f4391b19bc
7 changed files with 59 additions and 30 deletions

View File

@@ -31,6 +31,20 @@ attempt
:returns: Boolean indicating whether the solution was correct
getContractType
---------------
.. js:function:: getContractType(fn[, hostname/ip=current ip])
:param string fn: Filename of the contract
:param string hostname/ip: Hostname or IP of the server containing the contract.
Optional. Defaults to current server if not provided
Returns a name describing the type of problem posed by the Coding Contract.
(e.g. Find Largest Prime Factor, Total Ways to Sum, etc.)
:returns: A string with the contract's problem type
getDescription
--------------