-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d7501ee
commit 2a42af4
Showing
6 changed files
with
30 additions
and
10 deletions.
There are no files selected for viewing
Submodule cairo
updated
3 files
+60 −154 | corelib/src/cheatcodes.cairo | |
+0 −15 | corelib/src/lib.cairo | |
+4 −3 | corelib/src/protostar_print.cairo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[package] | ||
name = "print_test" | ||
version = "0.1.0" | ||
|
||
[tool.protostar] |
Empty file.
14 changes: 14 additions & 0 deletions
14
protostar-rust/tests/data/cheatcode_test/tests/test_print.cairo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use array::ArrayTrait; | ||
use starknet::testing::print; | ||
|
||
#[test] | ||
fn test_print() { | ||
let mut arr = ArrayTrait::new(); | ||
arr.append(152); | ||
arr.append(124); | ||
arr.append(149); | ||
|
||
print(arr.span()); | ||
|
||
assert(1 == 1, 'simple check'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters