Skip to content

Commit 50a671f

Browse files
committed
Fix tests
1 parent bef6723 commit 50a671f

File tree

8 files changed

+16
-18
lines changed

8 files changed

+16
-18
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error: expected string or byte string literal as input. found Lit::Bool { value: true }
2-
--> tests/ui/selector_bytes/fail/invalid_parameter_type_01.rs:1:37
1+
error: expected string or byte string literal as second argument. found Lit::Bool { value: true }
2+
--> tests/ui/selector_bytes/fail/invalid_parameter_type_01.rs:1:47
33
|
44
1 | const _: u32 = ink::selector_bytes!(Abi::Ink, true);
5-
| ^^^^
5+
| ^^^^
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error: expected string or byte string literal as input. found Lit::Int { token: 42 }
2-
--> tests/ui/selector_bytes/fail/invalid_parameter_type_02.rs:1:37
1+
error: expected string or byte string literal as second argument. found Lit::Int { token: 42 }
2+
--> tests/ui/selector_bytes/fail/invalid_parameter_type_02.rs:1:47
33
|
44
1 | const _: u32 = ink::selector_bytes!(Abi::Ink, 42);
5-
| ^^
5+
| ^^
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
error: expected string or byte string literal as input: unexpected end of input, expected literal
2-
--> tests/ui/selector_bytes/fail/missing_parameter.rs:1:16
1+
error: expected exactly 2 arguments (Abi enum, string literal), found 1
2+
--> tests/ui/selector_bytes/fail/missing_parameter.rs:1:37
33
|
44
1 | const _: u32 = ink::selector_bytes!(Abi::Ink, );
5-
| ^^^^^^^^^^^^^^^^^^^^^^
6-
|
7-
= note: this error originates in the macro `ink::selector_bytes` (in Nightly builds, run with -Z macro-backtrace for more info)
5+
| ^^^^^^^^^
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
error: expected string or byte string literal as input: expected literal
2-
--> tests/ui/selector_bytes/fail/non_literal_parameter.rs:2:37
1+
error: expected string or byte string literal as second argument
2+
--> tests/ui/selector_bytes/fail/non_literal_parameter.rs:2:47
33
|
44
2 | const _: u32 = ink::selector_bytes!(Abi::Ink, INPUT);
5-
| ^^^^^
5+
| ^^^^^

crates/ink/tests/ui/selector_id/fail/invalid_parameter_type_01.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: expected string or byte string literal as input. found Lit::Bool { value: true }
1+
error: expected exactly 2 arguments (Abi enum, string literal), found 1
22
--> tests/ui/selector_id/fail/invalid_parameter_type_01.rs:1:34
33
|
44
1 | const _: u32 = ink::selector_id!(true);

crates/ink/tests/ui/selector_id/fail/invalid_parameter_type_02.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: expected string or byte string literal as input. found Lit::Int { token: 42 }
1+
error: expected exactly 2 arguments (Abi enum, string literal), found 1
22
--> tests/ui/selector_id/fail/invalid_parameter_type_02.rs:1:34
33
|
44
1 | const _: u32 = ink::selector_id!(42);

crates/ink/tests/ui/selector_id/fail/missing_parameter.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: expected string or byte string literal as input: unexpected end of input, expected literal
1+
error: expected exactly 2 arguments (Abi enum, string literal), found 0
22
--> tests/ui/selector_id/fail/missing_parameter.rs:1:16
33
|
44
1 | const _: u32 = ink::selector_id!();

crates/ink/tests/ui/selector_id/fail/non_literal_parameter.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
error: expected string or byte string literal as input: expected literal
1+
error: expected exactly 2 arguments (Abi enum, string literal), found 1
22
--> tests/ui/selector_id/fail/non_literal_parameter.rs:2:34
33
|
44
2 | const _: u32 = ink::selector_id!(INPUT);

0 commit comments

Comments
 (0)