Skip to content

Commit

Permalink
chore: update console.sol in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniPopes committed Oct 7, 2024
1 parent 579e7d9 commit 8018914
Show file tree
Hide file tree
Showing 3 changed files with 410 additions and 389 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -eo pipefail

# We have to ignore at shell level because testdata/ is not a valid Foundry project,
# so running `forge fmt` with `--root testdata` won't actually check anything
shopt -s extglob
cargo run --bin forge -- fmt "$@" $(find testdata -name '*.sol' ! -name Vm.sol)
cargo run --bin forge -- fmt "$@" \
$(find testdata -name '*.sol' ! -name Vm.sol ! -name console.sol)
10 changes: 5 additions & 5 deletions testdata/default/logs/HardhatLogs.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ contract HardhatLogsTest {
}

function testInts() public view {
console.log(0);
console.log(1);
console.log(2);
console.log(3);
console.log(uint256(0));
console.log(uint256(1));
console.log(uint256(2));
console.log(uint256(3));
}

function testStrings() public view {
Expand All @@ -37,7 +37,7 @@ contract HardhatLogsTest {

function testMisc() public view {
console.log("testMisc", address(1));
console.log("testMisc", 42);
console.log("testMisc", uint256(42));
}

function testConsoleLog() public view {
Expand Down
Loading

0 comments on commit 8018914

Please sign in to comment.