Skip to content

Commit 8ce3b1d

Browse files
committed
test: update with some of the special chars
1 parent 302c570 commit 8ce3b1d

File tree

4 files changed

+2005
-1916
lines changed

4 files changed

+2005
-1916
lines changed

__mocks__/cairo/cairo240/string.cairo

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//Cairo 2.4.0
1+
//Cairo 2.5.0
22

33
#[starknet::interface]
44
trait ITestReject<TContractState> {
@@ -14,21 +14,18 @@ mod MyTestReject {
1414
use core::bytes_31::Bytes31Trait;
1515
use core::byte_array::ByteArrayTrait;
1616
#[storage]
17-
struct Storage {
18-
counter: u8
19-
}
20-
21-
#[external(v0)]
17+
struct Storage {}
18+
// To be tested with special characters (!@#$%^&*_+{}|:";./,\[];'<>?~`)
19+
#[abi(embed_v0)]
2220
impl TestReject of super::ITestReject<ContractState> {
2321
fn proceed_bytes31(self: @ContractState, str: bytes31) -> bytes31 {
24-
let mut mess: ByteArray = "azertzertrty dfghfghj dfgh dfghazert sdfgsdf ";
22+
let mut mess: ByteArray = "Cairo has become the most popular language for developers!@#$%^&*_+|:'<>?~`";
2523
mess.append_byte(55_u8);
26-
let mot: felt252 = ' Zorg';
2724
str
2825
}
2926

3027
fn get_string(self: @ContractState) -> ByteArray {
31-
let mut mess: ByteArray = "azertzertrty dfghfghj dfgh dfghazert sdfgsdf ";
28+
let mess: ByteArray = "Cairo has become the most popular language for developers" + " + charizards !@#$%^&*_+|:'<>?~`";
3229
mess
3330
}
3431

0 commit comments

Comments
 (0)