From 55fd757255adf3ed04bbba373fe62f8256738811 Mon Sep 17 00:00:00 2001 From: Nisheeth Barthwal Date: Tue, 6 Aug 2024 13:35:26 +0200 Subject: [PATCH] add test --- crates/forge/tests/cli/build.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/forge/tests/cli/build.rs b/crates/forge/tests/cli/build.rs index 93b313742..9754fcf07 100644 --- a/crates/forge/tests/cli/build.rs +++ b/crates/forge/tests/cli/build.rs @@ -51,6 +51,13 @@ forgetest_init!(build_sizes_no_forge_std, |prj, cmd| { assert!(stdout.contains("Counter"), "\n{stdout}"); }); +// tests build output is as expected in zksync mode +forgetest_init!(test_zk_build_sizes, |prj, cmd| { + cmd.args(["build", "--sizes", "--zksync"]); + let stdout = cmd.stdout_lossy(); + assert!(stdout.contains("| Counter | 800 | 450,199 |"), "\n{stdout}"); +}); + // tests that skip key in config can be used to skip non-compilable contract forgetest_init!(test_can_skip_contract, |prj, cmd| { prj.add_source(