forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
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
cfa11dc
commit 9dd3190
Showing
4 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
def test_frompyfunc_name(self): | ||
# name conversion was failing for python 3 strings | ||
# resulting in the default '?' name. Also test utf-8 | ||
# encoding using non-ascii name. | ||
def cassé(x): | ||
return x | ||
|
||
ℙƴtℌøἤ = 1 | ||
print(ℙƴtℌøἤ) | ||
|
||
if 诶 != 2: | ||
pass | ||
|
||
def क१(): | ||
... |
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,13 @@ | ||
{ | ||
"basename": "ast_new-unicode-d3199dc", | ||
"cmd": "lpython --show-ast --new-parser --no-color {infile} -o {outfile}", | ||
"infile": "tests/parser/unicode.py", | ||
"infile_hash": "6b3cd163f80b29c927ea2538095688bb9d903c15b5e4a782dc821db5", | ||
"outfile": null, | ||
"outfile_hash": null, | ||
"stdout": "ast_new-unicode-d3199dc.stdout", | ||
"stdout_hash": "bdca5ecb774b300120d0fb96e5d605081cc605679407404407f9b050", | ||
"stderr": null, | ||
"stderr_hash": null, | ||
"returncode": 0 | ||
} |
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 @@ | ||
(Module [(FunctionDef test_frompyfunc_name ([] [(self () ())] [] [] [] [] []) [(FunctionDef cassé ([] [(x () ())] [] [] [] [] []) [(Return (Name x Load))] [] () ())] [] () ()) (Assign [(Name ℙƴtℌøἤ Store)] (ConstantInt 1 ()) ()) (Expr (Call (Name print Load) [(Name ℙƴtℌøἤ Load)] [])) (If (Compare (Name 诶 Load) NotEq [(ConstantInt 2 ())]) [(Pass)] []) (FunctionDef क१ ([] [] [] [] [] [] []) [(Expr (ConstantEllipsis ()))] [] () ())] []) |
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