Skip to content

Commit

Permalink
Revert "Fix failing tests by adjusting stderr message assertions (#915)"
Browse files Browse the repository at this point in the history
This reverts commit 6e42094.
  • Loading branch information
maciektr committed Nov 23, 2023
1 parent e84f7be commit 0f7e9e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion scarb/tests/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,6 @@ fn edition_must_exist() {
|
4 | edition = "2021"
| ^^^^^^
unknown variant `2021`, expected one of `2023_01`, `2023_10`, `2023_11`
unknown variant `2021`, expected `2023_01` or `2023_10`
"#});
}
6 changes: 3 additions & 3 deletions scarb/tests/build_starknet_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ fn compile_starknet_contract_without_starknet_dep() {
fn constructor(ref self: ContractState, value_: u128) {
^***********^
error: Method `write` not found on type `<missing>`. Did you import the correct trait and impl?
error: Method `write` not found on type "<missing>". Did you import the correct trait and impl?
--> [..]/lib.cairo:20:20
self.value.write(value_);
^***^
Expand All @@ -399,7 +399,7 @@ fn compile_starknet_contract_without_starknet_dep() {
fn get(self: @ContractState) -> u128 {
^***********^
error: Method `read` not found on type `<missing>`. Did you import the correct trait and impl?
error: Method `read` not found on type "<missing>". Did you import the correct trait and impl?
--> [..]/lib.cairo:26:24
self.value.read()
^**^
Expand All @@ -409,7 +409,7 @@ fn compile_starknet_contract_without_starknet_dep() {
fn increase(ref self: ContractState, a: u128) {
^***********^
error: Method `write` not found on type `<missing>`. Did you import the correct trait and impl?
error: Method `write` not found on type "<missing>". Did you import the correct trait and impl?
--> [..]/lib.cairo:29:24
self.value.write( self.value.read() + a );
^***^
Expand Down

0 comments on commit 0f7e9e8

Please sign in to comment.