Test Mcopy¶
Documentation for tests/cancun/eip5656_mcopy/test_mcopy.py
.
Generate fixtures for these test cases for Cancun with:
Cancun only:
fill -v tests/cancun/eip5656_mcopy/test_mcopy.py --fork=Cancun --evm-bin=/path/to/evm-tool-dev-version
fill -v tests/cancun/eip5656_mcopy/test_mcopy.py --until=Cancun --evm-bin=/path/to/evm-tool-dev-version
abstract: Tests EIP-5656: MCOPY - Memory copying instruction
Test copy operations of [EIP-5656: MCOPY - Memory copying instruction](https://eips.ethereum.org/EIPS/eip-5656)
test_valid_mcopy_operations(state_test, pre, post, tx)
¶
Perform MCOPY operations using different offsets and lengths
- Zero inputs
- Memory rewrites (copy from and to the same location)
- Memory overwrites (copy from and to different locations)
- Memory extensions (copy to a location that is out of bounds)
- Memory clear (copy from a location that is out of bounds)
Source code in tests/cancun/eip5656_mcopy/test_mcopy.py
132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
|
test_mcopy_on_empty_memory(state_test, pre, post, tx)
¶
Perform MCOPY operations on an empty memory, using different offsets and lengths.
Source code in tests/cancun/eip5656_mcopy/test_mcopy.py
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 |
|