Skip to content

Commit ad46adf

Browse files
committed
Update test expectations
1 parent f532c14 commit ad46adf

File tree

4 files changed

+26
-29
lines changed

4 files changed

+26
-29
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ fn can_limit_gas() {
9797
Finished `dev` profile target(s) in [..]
9898
Running hello_world
9999
Run completed successfully, returning [987]
100-
Remaining gas: 59760
100+
Remaining gas: 57270
101101
"#});
102102
}
103103

extensions/scarb-cairo-test/tests/build.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,12 @@ fn integration_tests() {
237237
[..]Finished `dev` profile target(s) in [..]
238238
testing hello ...
239239
running 2 tests
240-
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 40740)
241-
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 40740)
240+
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 43130)
241+
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 43130)
242242
test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out;
243243
244244
running 1 test
245-
test hello::tests::it_works ... ok (gas usage est.: 40740)
245+
test hello::tests::it_works ... ok (gas usage est.: 43130)
246246
test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out;
247247
248248
"#});
@@ -336,7 +336,7 @@ fn can_choose_test_kind_to_run() {
336336
[..]Finished `dev` profile target(s) in [..]
337337
testing hello ...
338338
running 1 test
339-
test hello::tests::it_works ... ok (gas usage est.: 40740)
339+
test hello::tests::it_works ... ok (gas usage est.: 43130)
340340
test result: ok. 1 passed; 0 failed; 0 ignored; 0 filtered out;
341341
342342
"#});
@@ -352,8 +352,8 @@ fn can_choose_test_kind_to_run() {
352352
[..]Finished `dev` profile target(s) in [..]
353353
testing hello ...
354354
running 2 tests
355-
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 40740)
356-
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 40740)
355+
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 43130)
356+
test hello_integrationtest::[..]::tests::it_works ... ok (gas usage est.: 43130)
357357
test result: ok. 2 passed; 0 failed; 0 ignored; 0 filtered out;
358358
359359
"#});

scarb/tests/build_starknet_contract_allowed_libfuncs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const TESTING_LIST: &str = indoc! {r#"
2626
"#};
2727

2828
#[test]
29+
#[ignore = "redeposit_gas is audited now"]
2930
fn default_behaviour() {
3031
let t = assert_fs::TempDir::new().unwrap();
3132
ProjectBuilder::start()
@@ -59,6 +60,7 @@ fn default_behaviour() {
5960
}
6061

6162
#[test]
63+
#[ignore = "redeposit_gas is audited now"]
6264
fn check_true() {
6365
let t = assert_fs::TempDir::new().unwrap();
6466
ProjectBuilder::start()

scarb/tests/fmt.rs

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -225,47 +225,42 @@ fn format_with_import_sorting() {
225225
Diff in file [..]lib.cairo:
226226
--- original
227227
+++ modified
228-
@@ -1,21 +1,18 @@
229-
-use openzeppelin::introspection::interface;
228+
@@ -1,21 +1,21 @@
229+
+use openzeppelin::introspection::first;
230+
use openzeppelin::introspection::interface;
230231
-use openzeppelin::introspection::first;
231-
+use openzeppelin::introspection::{first, interface};
232-
232+
233233
#[starknet::contract]
234234
mod SRC5 {
235-
- use openzeppelin::introspection::interface;
235+
use openzeppelin::introspection::interface;
236236
- use openzeppelin::introspection::{interface, AB};
237237
+ use openzeppelin::introspection::{AB, interface};
238-
238+
239239
#[storage]
240240
struct Storage {
241241
- supported_interfaces: LegacyMap<felt252, bool>
242242
+ supported_interfaces: LegacyMap<felt252, bool>,
243243
}
244-
-
244+
245245
use openzeppelin::introspection::first;
246-
246+
247247
mod A {}
248-
+ mod F;
249-
mod G;
250-
- mod F;
251-
248+
- mod G;
249+
mod F;
250+
+ mod G;
251+
252252
#[abi(embed_v0)]
253253
impl SRC5Impl of interface::ISRC5<ContractState> {
254-
@@ -23,12 +20,10 @@
255-
true
256-
}
257-
}
258-
-
259-
use A;
254+
@@ -28,7 +28,7 @@
260255
use starknet::ArrayTrait;
261-
256+
262257
mod Inner {
263-
- use C;
258+
+ use B;
259+
use C;
264260
- use B;
265-
+ use {B, C};
266261
}
267262
}
268-
263+
269264
"});
270265
}
271266

0 commit comments

Comments
 (0)