aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-09 20:58:28 +0800
committerchriseth <chris@ethereum.org>2018-08-14 21:50:46 +0800
commitf873389c6227d41dbba9ba4c23ed055f286ecb71 (patch)
tree03cd6596754f48ede98a93c9d05d248b410a58ba /scripts
parent8f0c2a46db787de166f7bcaed2180fcab9248d12 (diff)
downloaddexon-solidity-f873389c6227d41dbba9ba4c23ed055f286ecb71.tar.gz
dexon-solidity-f873389c6227d41dbba9ba4c23ed055f286ecb71.tar.zst
dexon-solidity-f873389c6227d41dbba9ba4c23ed055f286ecb71.zip
Test that documentation does not contain any warnings.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/isolate_tests.py16
1 files changed, 3 insertions, 13 deletions
diff --git a/scripts/isolate_tests.py b/scripts/isolate_tests.py
index 1f913504..57fc7ff0 100755
--- a/scripts/isolate_tests.py
+++ b/scripts/isolate_tests.py
@@ -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