Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3463036

Browse files
committed
remove Math. prefix, test
1 parent 96897b9 commit 3463036

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

java2python/config/default.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
(r'\.getInterfaces\(\)', '.__bases__'),
212212
(r'String\.valueOf\((.*?)\)', r'str(\1)'),
213213
#(r'(\s)(\S*?)(\.toString\(\))', r'\1str(\2)'),
214+
(r'Math\.', ''),
214215
]
215216

216217

test/Math0.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class Math0 {
2+
public static void main(String[] args) {
3+
System.out.println(Math.abs(-42));
4+
System.out.println(Math.abs(-0.5));
5+
}
6+
}

0 commit comments

Comments
 (0)