Skip to content

Commit

Permalink
Fix asserts with time units (#1243)
Browse files Browse the repository at this point in the history
commit-id:38e43ae7

---

**Stack**:
- #1244
- #1235
- #1243⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
  • Loading branch information
maciektr authored Apr 5, 2024
1 parent 5d827ac commit 307db48
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions extensions/scarb-cairo-run/tests/arguments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ fn array_instead_of_felt() {
#[cfg(windows)]
snapbox.stdout_matches(indoc! {r#"
Compiling hello v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello
error: failed to run the function
Expand All @@ -105,7 +105,7 @@ fn array_instead_of_felt() {
#[cfg(not(windows))]
snapbox.stdout_matches(indoc! {r#"
Compiling hello v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello
error: failed to run the function
Expand Down Expand Up @@ -238,7 +238,7 @@ fn invalid_struct_deserialization() {
#[cfg(windows)]
snapbox.stdout_matches(indoc! {r#"
Compiling hello v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello
error: failed to run the function
Expand All @@ -249,7 +249,7 @@ fn invalid_struct_deserialization() {
#[cfg(not(windows))]
snapbox.stdout_matches(indoc! {r#"
Compiling hello v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello
error: failed to run the function
Expand Down
4 changes: 2 additions & 2 deletions extensions/scarb-cairo-run/tests/examples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ fn can_disable_gas() {
#[cfg(windows)]
snapbox.stdout_matches(indoc! {r#"
Compiling hello_world v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello_world
error: program requires gas counter, please provide `--available-gas` argument
error: process did not exit successfully: exit code: 1
"#});
#[cfg(not(windows))]
snapbox.stdout_matches(indoc! {r#"
Compiling hello_world v0.1.0 ([..]Scarb.toml)
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
Running hello_world
error: program requires gas counter, please provide `--available-gas` argument
"#});
Expand Down
2 changes: 1 addition & 1 deletion scarb/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ fn warnings_allowed_by_default() {
let a = 41;
^
Finished release target(s) in [..] seconds
Finished release target(s) in [..]
"#});
}

Expand Down

0 comments on commit 307db48

Please sign in to comment.