mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Test that documentation does not contain any warnings.
This commit is contained in:
@@ -56,20 +56,10 @@ def extract_docs_cases(path):
|
||||
else:
|
||||
tests[-1] += l + '\n'
|
||||
else:
|
||||
m = re.search(r'^ // This will not compile', l)
|
||||
m = re.search(r'^ pragma solidity .*[0-9]+\.[0-9]+\.[0-9]+;$', l)
|
||||
if m:
|
||||
ignore = True
|
||||
|
||||
if ignore:
|
||||
# Abort if indentation is missing
|
||||
m = re.search(r'^[^ ]+', l)
|
||||
if m:
|
||||
ignore = False
|
||||
else:
|
||||
m = re.search(r'^ pragma solidity .*[0-9]+\.[0-9]+\.[0-9]+;$', l)
|
||||
if m:
|
||||
inside = True
|
||||
tests += [l]
|
||||
inside = True
|
||||
tests += [l]
|
||||
|
||||
return tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user