build: upgrade to prb-test v0.1.3

build: upgrade to latest forge-std
test: use "StdCheats" instead of "Cheats"
test: use "console2" instead of "console"
This commit is contained in:
Paul Razvan Berg 2022-10-29 16:37:43 +03:00
parent d9294fdf54
commit 702979aa1c
No known key found for this signature in database
GPG Key ID: BCC366159BD63828
4 changed files with 7 additions and 7 deletions

2
.gitmodules vendored
View File

@ -3,6 +3,6 @@
path = "lib/forge-std"
url = "https://github.com/foundry-rs/forge-std"
[submodule "lib/prb-test"]
branch = "0.1.2"
branch = "0.1.3"
path = "lib/prb-test"
url = "https://github.com/paulrberg/prb-test"

@ -1 +1 @@
Subproject commit 9d323e30e65c5f660d4b0bba07a2ea1c733ab987
Subproject commit 72cdd70ae608e32711b4bcf3bbcdafc9eddc3c56

@ -1 +1 @@
Subproject commit 548ab3c07ab4c60185667f04565861a25d2d6763
Subproject commit 2018da1321cb7d8a6e698e50d7ad17d7c7cddf79

View File

@ -1,20 +1,20 @@
// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.4;
import { Cheats } from "forge-std/Cheats.sol";
import { console } from "forge-std/console.sol";
import { StdCheats } from "forge-std/StdCheats.sol";
import { console2 } from "forge-std/console2.sol";
import { PRBTest } from "@prb/test/PRBTest.sol";
/// @dev See the "Writing Tests" section in the Foundry Book if this is your first time with Forge.
/// https://book.getfoundry.sh/forge/writing-tests
contract ContractTest is PRBTest, Cheats {
contract ContractTest is PRBTest, StdCheats {
function setUp() public {
// solhint-disable-previous-line no-empty-blocks
}
/// @dev Run Forge with `-vvvv` to see console logs.
function testExample() public {
console.log("Hello World");
console2.log("Hello World");
assertTrue(true);
}
}