Skip to content

Commit

Permalink
renames L2EPTest.sol to L2EPTest.t.sol, updates README, and fixes fou…
Browse files Browse the repository at this point in the history
…ndry import path for Example test
  • Loading branch information
chris-de-leon-cll committed Jan 4, 2024
1 parent 2dff440 commit d585d34
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions contracts/src/v0.8/l2ep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ Hardhat test cases should be considered deprecated at this point)

### Testing Conventions and Methodology

By convention, each testing file should end in `.t.sol` (this has no effect on
Foundry, but it is a standard that other projects have also adopted). Each
testing file in this folder follows a similar structure.
By convention, each testing file should end in `.t.sol` (this is a standard
that other projects have also adopted). Each testing file in this folder
follows a similar structure.

```text
TestFile.t.sol
Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/l2ep/test/v1_0_0/Example.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.19;

import {Test} from "foundry-lib/forge-std/src/Test.sol";
import {Test} from "forge-std/Test.sol";

// Use the following command to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {ArbitrumSequencerUptimeFeed} from "../../../dev/arbitrum/ArbitrumSequenc
import {MockArbitrumInbox} from "../../../../../v0.8/tests/MockArbitrumInbox.sol";
import {ArbitrumValidator} from "../../../dev/arbitrum/ArbitrumValidator.sol";
import {MockAggregatorV2V3} from "../../mocks/MockAggregatorV2V3.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.19;
import {OptimismCrossDomainForwarder} from "../../../dev/optimism/OptimismCrossDomainForwarder.sol";
import {MockOVMCrossDomainMessenger} from "../../mocks/optimism/MockOVMCrossDomainMessenger.sol";
import {Greeter} from "../../../../../v0.8/tests/Greeter.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {OptimismCrossDomainGovernor} from "../../../dev/optimism/OptimismCrossDo
import {MockOVMCrossDomainMessenger} from "../../mocks/optimism/MockOVMCrossDomainMessenger.sol";
import {MultiSend} from "../../../../../v0.8/vendor/MultiSend.sol";
import {Greeter} from "../../../../../v0.8/tests/Greeter.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MockOptimismL1CrossDomainMessenger} from "../../../../tests/MockOptimism
import {MockOptimismL2CrossDomainMessenger} from "../../../../tests/MockOptimismL2CrossDomainMessenger.sol";
import {OptimismSequencerUptimeFeed} from "../../../dev/optimism/OptimismSequencerUptimeFeed.sol";
import {FeedConsumer} from "../../../../../v0.8/tests/FeedConsumer.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MockOptimismL1CrossDomainMessenger} from "../../../../tests/MockOptimism
import {MockOptimismL2CrossDomainMessenger} from "../../../../tests/MockOptimismL2CrossDomainMessenger.sol";
import {OptimismSequencerUptimeFeed} from "../../../dev/optimism/OptimismSequencerUptimeFeed.sol";
import {OptimismValidator} from "../../../dev/optimism/OptimismValidator.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity ^0.8.19;
import {MockScrollCrossDomainMessenger} from "../../mocks/scroll/MockScrollCrossDomainMessenger.sol";
import {ScrollCrossDomainForwarder} from "../../../dev/scroll/ScrollCrossDomainForwarder.sol";
import {Greeter} from "../../../../../v0.8/tests/Greeter.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MockScrollCrossDomainMessenger} from "../../mocks/scroll/MockScrollCross
import {ScrollCrossDomainGovernor} from "../../../dev/scroll/ScrollCrossDomainGovernor.sol";
import {MultiSend} from "../../../../../v0.8/vendor/MultiSend.sol";
import {Greeter} from "../../../../../v0.8/tests/Greeter.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MockScrollL1CrossDomainMessenger} from "../../mocks/scroll/MockScrollL1C
import {MockScrollL2CrossDomainMessenger} from "../../mocks/scroll/MockScrollL2CrossDomainMessenger.sol";
import {ScrollSequencerUptimeFeed} from "../../../dev/scroll/ScrollSequencerUptimeFeed.sol";
import {FeedConsumer} from "../../../../../v0.8/tests/FeedConsumer.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {MockScrollL1CrossDomainMessenger} from "../../mocks/scroll/MockScrollL1C
import {MockScrollL2CrossDomainMessenger} from "../../mocks/scroll/MockScrollL2CrossDomainMessenger.sol";
import {ScrollSequencerUptimeFeed} from "../../../dev/scroll/ScrollSequencerUptimeFeed.sol";
import {ScrollValidator} from "../../../dev/scroll/ScrollValidator.sol";
import {L2EPTest} from "../L2EPTest.sol";
import {L2EPTest} from "../L2EPTest.t.sol";

// Use this command from the /contracts directory to run this test file:
//
Expand Down

0 comments on commit d585d34

Please sign in to comment.