From 206dc3fdca2f61387b25c29e5d93ad331987e6d0 Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Thu, 11 Jan 2024 21:02:50 +0100 Subject: [PATCH] Rename a test to better reflect the intent --- .../cargo/tests/src/cst_output/generated/TrailingTrivia.rs | 4 ++-- .../generated/0.4.11-failure.yml | 2 +- .../{only_single_comment => only_until_newline}/input.sol | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename crates/solidity/testing/snapshots/cst_output/TrailingTrivia/{only_single_comment => only_until_newline}/generated/0.4.11-failure.yml (94%) rename crates/solidity/testing/snapshots/cst_output/TrailingTrivia/{only_single_comment => only_until_newline}/input.sol (100%) diff --git a/crates/solidity/outputs/cargo/tests/src/cst_output/generated/TrailingTrivia.rs b/crates/solidity/outputs/cargo/tests/src/cst_output/generated/TrailingTrivia.rs index 552c4816f8..02ebfeef62 100644 --- a/crates/solidity/outputs/cargo/tests/src/cst_output/generated/TrailingTrivia.rs +++ b/crates/solidity/outputs/cargo/tests/src/cst_output/generated/TrailingTrivia.rs @@ -15,6 +15,6 @@ fn multi_line_without_newline() -> Result<()> { } #[test] -fn only_single_comment() -> Result<()> { - run("TrailingTrivia", "only_single_comment") +fn only_until_newline() -> Result<()> { + run("TrailingTrivia", "only_until_newline") } diff --git a/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/generated/0.4.11-failure.yml b/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/generated/0.4.11-failure.yml similarity index 94% rename from crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/generated/0.4.11-failure.yml rename to crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/generated/0.4.11-failure.yml index d8e5271d4a..a0aa25209f 100644 --- a/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/generated/0.4.11-failure.yml +++ b/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/generated/0.4.11-failure.yml @@ -7,7 +7,7 @@ Source: > Errors: # 1 total - > Error: Expected end of file. - ╭─[crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/input.sol:2:1] + ╭─[crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/input.sol:2:1] │ 2 │ // second │ ─────┬───── diff --git a/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/input.sol b/crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/input.sol similarity index 100% rename from crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_single_comment/input.sol rename to crates/solidity/testing/snapshots/cst_output/TrailingTrivia/only_until_newline/input.sol