mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #11605 from ethereum/issue-8191
isolate_tests: Extract code blocks from documentation using code block header
This commit is contained in:
@@ -73,7 +73,7 @@ four indexed arguments rather than three.
|
||||
In particular, it is possible to "fake" the signature of another event
|
||||
using an anonymous event.
|
||||
|
||||
::
|
||||
.. code-block:: solidity
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.4.21 <0.9.0;
|
||||
|
||||
@@ -324,7 +324,7 @@ from the documentation or the other tests:
|
||||
# extract from tests:
|
||||
path/to/solidity/scripts/isolate_tests.py path/to/solidity/test/libsolidity/SolidityEndToEndTest.cpp
|
||||
# extract from documentation:
|
||||
path/to/solidity/scripts/isolate_tests.py path/to/solidity/docs docs
|
||||
path/to/solidity/scripts/isolate_tests.py path/to/solidity/docs
|
||||
|
||||
The AFL documentation states that the corpus (the initial input files) should not be
|
||||
too large. The files themselves should not be larger than 1 kB and there should be
|
||||
|
||||
@@ -58,7 +58,7 @@ The following example shows a contract and a function using all available tags.
|
||||
|
||||
This may change in the future.
|
||||
|
||||
.. code:: Solidity
|
||||
.. code-block:: Solidity
|
||||
|
||||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity >=0.8.2 < 0.9.0;
|
||||
|
||||
Reference in New Issue
Block a user