From 06e86bdb9bcf2ce14841baf323eb18dfad2fbc76 Mon Sep 17 00:00:00 2001 From: domenicodev Date: Thu, 14 Dec 2023 12:58:27 +0100 Subject: [PATCH] feat: created initial IntegralSwapAdapter test file --- evm/test/IntegralSwapAdapter.t.sol | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 evm/test/IntegralSwapAdapter.t.sol diff --git a/evm/test/IntegralSwapAdapter.t.sol b/evm/test/IntegralSwapAdapter.t.sol new file mode 100644 index 0000000..cb211e8 --- /dev/null +++ b/evm/test/IntegralSwapAdapter.t.sol @@ -0,0 +1,18 @@ +// SPDX-License-Identifier: AGPL-3.0-or-later +pragma solidity ^0.8.13; + +import "forge-std/Test.sol"; +import "src/interfaces/ISwapAdapterTypes.sol"; +import "src/libraries/FractionMath.sol"; + +/// @title TemplateSwapAdapterTest +/// @dev This is a template for a swap adapter test. +/// Test all functions that are implemented in your swap adapter, the two test included here are just an example. +/// Feel free to use UniswapV2SwapAdapterTest and BalancerV2SwapAdapterTest as a reference. +contract TemplateSwapAdapterTest is Test, ISwapAdapterTypes { + using FractionMath for Fraction; + + function testPriceFuzz(uint256 amount0, uint256 amount1) public {} + + function testSwapFuzz(uint256 specifiedAmount) public {} +}