test_swapn_gas_cost_boundary()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_gas_cost_boundary@c74f1a67.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py::test_swapn_gas_cost_boundary --fork Amsterdam
Test SWAPN at the gas cost boundary.
SWAPN is invoked in a callee that receives exactly its execution cost
plus gas_cost_delta. The caller records the CALL result: a negative
delta starves SWAPN of its base gas (3) and the sub-call runs out of
gas (result 0); a zero or positive delta succeeds (result 1).
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_swapn.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 | |
Parametrized Test Cases¶
This test generates 5 parametrized test cases across 1 fork.