Commit 10ff5f7
Use lua's math.atan2 for Math.atan2 (#765)
* use lua's math.atan2 for Math.atan2
* use math.atan for Lua 5.3
* use snapshots for tests
* use tap and testEachVersion for math.atan testing
* Move Math.atan2 transformation down to switch case
* Move math atan2 transformation back to top of switch
* Remove unneeded whitespace change
* Improve math.atan2 comment
Co-Authored-By: Perry van Wesel <Perryvw@users.noreply.github.com>
* Use methodName for Math method transformation
* Add Math.atan2 Lua5.3 comparison test, fix math.atan taps
* Update test/unit/builtins/math.spec.ts
Co-Authored-By: ark120202 <ark120202@gmail.com>
* Update test/unit/builtins/math.spec.ts
Co-Authored-By: ark120202 <ark120202@gmail.com>1 parent c1485af commit 10ff5f7
File tree
3 files changed
+21
-13
lines changed- src/transformation/builtins
- test/unit/builtins
- __snapshots__
3 files changed
+21
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | | - | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | | - | |
40 | | - | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 11 | | |
20 | 12 | | |
21 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | | - | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
0 commit comments