diff options
author | chriseth <chris@ethereum.org> | 2018-08-09 20:58:28 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-08-14 21:50:46 +0800 |
commit | f873389c6227d41dbba9ba4c23ed055f286ecb71 (patch) | |
tree | 03cd6596754f48ede98a93c9d05d248b410a58ba /scripts | |
parent | 8f0c2a46db787de166f7bcaed2180fcab9248d12 (diff) | |
download | dexon-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-x | scripts/isolate_tests.py | 16 |
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 |