Skip to content

Commit 6a5b5d0

Browse files
committed
Remove cairo_run_example
1 parent 22d1778 commit 6a5b5d0

File tree

4 files changed

+12
-34
lines changed

4 files changed

+12
-34
lines changed

examples/cairo_run_example/README.md

-3
This file was deleted.

examples/cairo_run_example/Scarb.toml

-8
This file was deleted.

examples/cairo_run_example/src/lib.cairo

-11
This file was deleted.

extensions/scarb-cairo-run/tests/examples.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ use snapbox::cmd::{cargo_bin, Command};
44
use scarb_test_support::cargo::manifest_dir;
55

66
#[test]
7-
fn cairo_test_success() {
7+
fn hello_world() {
88
let example = manifest_dir()
99
.parent()
1010
.unwrap()
1111
.parent()
1212
.unwrap()
1313
.join("examples")
14-
.join("cairo_run_example");
14+
.join("hello_world");
1515
Command::new(cargo_bin("scarb"))
1616
.arg("build")
1717
.current_dir(example.clone())
@@ -25,23 +25,23 @@ fn cairo_test_success() {
2525
.assert()
2626
.success()
2727
.stdout_matches(indoc! {r#"
28-
running cairo_run_example ...
29-
Compiling cairo_run_example v0.1.0 ([..]/Scarb.toml)
28+
running hello_world ...
29+
Compiling hello_world v0.1.0 ([..]/Scarb.toml)
3030
Finished release target(s) in [..]
31-
Run completed successfully, returning [2]
32-
Remaining gas: 1971340
31+
Run completed successfully, returning [987]
32+
Remaining gas: 1953640
3333
"#});
3434
}
3535

3636
#[test]
37-
fn cairo_test_package_not_built() {
37+
fn package_not_built() {
3838
let example = manifest_dir()
3939
.parent()
4040
.unwrap()
4141
.parent()
4242
.unwrap()
4343
.join("examples")
44-
.join("cairo_run_example");
44+
.join("hello_world");
4545
Command::new(cargo_bin("scarb"))
4646
.arg("clean")
4747
.current_dir(example.clone())
@@ -55,10 +55,10 @@ fn cairo_test_package_not_built() {
5555
.assert()
5656
.success()
5757
.stdout_matches(indoc! {r#"
58-
running cairo_run_example ...
59-
Compiling cairo_run_example v0.1.0 ([..]/Scarb.toml)
58+
running hello_world ...
59+
Compiling hello_world v0.1.0 ([..]/Scarb.toml)
6060
Finished release target(s) in [..]
61-
Run completed successfully, returning [2]
62-
Remaining gas: 1971340
61+
Run completed successfully, returning [987]
62+
Remaining gas: 1953640
6363
"#});
6464
}

0 commit comments

Comments
 (0)