-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(output): compare python output to rust output (#9)
* test(output): compare python output to rust output * test(hints): add test where output is diff * izldf,sqmdq
- Loading branch information
Showing
9 changed files
with
88 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
/target | ||
build/test.zip |
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
Binary file not shown.
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,12 @@ | ||
%builtins output | ||
|
||
func main(output_ptr: felt*) -> (output_ptr: felt*) { | ||
tempvar a = 18; | ||
a = [output_ptr], ap++; | ||
// Use custom hint to print the value of a | ||
%{ print(ids.a) %} | ||
let output_ptr = output_ptr + 1; | ||
|
||
return(output_ptr = output_ptr); | ||
} |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
func main() { | ||
let a = 17; | ||
%builtins output | ||
|
||
func main(output_ptr: felt*) -> (output_ptr: felt*) { | ||
tempvar a = 17; | ||
a = [output_ptr], ap++; | ||
// Use custom hint to print the value of a | ||
%{ print(ids.a) %} | ||
return (); | ||
} | ||
let output_ptr = output_ptr + 1; | ||
|
||
return(output_ptr = output_ptr); | ||
} |
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