From f873389c6227d41dbba9ba4c23ed055f286ecb71 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Aug 2018 14:58:28 +0200 Subject: Test that documentation does not contain any warnings. --- scripts/isolate_tests.py | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3