Commit 0ed6fe3
Add test builder (#609)
* Add new test builder and convert few tests
* Rename fn and mod to testFunction and testModule
* Transform some more tests
* Transform some more tests
* Transform some more tests
* Update require tests
* Fix tests on node 8.5.0
* Change float precision in json test util
* Transform some more tests
* Revert "Change float precision in json test util"
This reverts commit 90cc57f.
* Transform some more tests
* Move serialize to separate template functions
* Rename some builder methods
* numbers.spec.ts
* Serialize NaN and Infinity test results
* math.spec.ts
* console.spec.ts
* Merge array.spec.ts files
* Move some math tests to lualib
* Move around some lualib tests
* Move numbers.spec.ts to lualib tests
* Move inlining tests to other luaLibImport tests
* Fix node 8 tests
* Merge curry.spec.ts into functions.spec.ts
* Fix object tests
* Refactor array tests
* Move custom decorator tests to separate directory
* Merge tagged template literal and simple template literal tests
* Update globalThis tests
* Move and remove some tests from expressions.spec.ts
* Move class-related tests to a directory
* Move namespace tests from modules
* Move modules tests to a subdirectory
* Transform tagged template literals tests
* Transform sourcemaps tests
* Move string tests to lualib directory
* Refactor spread.spec.ts
* Refactor bindingpatterns.spec.ts
* Merge and refactor destructuring tests
* Fix expressions tests
* Fix declared namespace function call test
* Remove/move to other files tuples tests
* Move transformers.spec.ts to subdirectory
* Move some tests to printer subdirectory
* Remove declarations.spec.ts
* Split typechecking into instanceof and typeof
* Rename lualib tests to builtins
* Move parenthesis removal tests to printer subdirectory
* Remove some translation tests
* Move around assignments and expressions
* Fix loading tests
* enum.spec.ts
* globalThis.spec.ts
* Rearrange some enum tests
* Refactor some tests
* Fix enum tests
* Remove todos for #663
* Move enum array index tests to array.spec.ts
* Remove some translation tests
* Fix nested namespace test
* Fix as const cast creating diagnostics
* Address feedback
* Refactor new spread tests
* Remove spreadAssignment translation test1 parent c11ba34 commit 0ed6fe3
File tree
114 files changed
+5878
-7000
lines changed- src
- test
- translation
- __snapshots__
- transformation
- unit
- __snapshots__
- assignments
- builtins
- __snapshots__
- classes
- decorators
- functions
- validation
- lualib
- modules
- printer
- transformers
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
114 files changed
+5878
-7000
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4552 | 4552 | | |
4553 | 4553 | | |
4554 | 4554 | | |
4555 | | - | |
| 4555 | + | |
4556 | 4556 | | |
4557 | 4557 | | |
4558 | 4558 | | |
| |||
4622 | 4622 | | |
4623 | 4623 | | |
4624 | 4624 | | |
4625 | | - | |
| 4625 | + | |
4626 | 4626 | | |
4627 | 4627 | | |
4628 | 4628 | | |
| |||
4872 | 4872 | | |
4873 | 4873 | | |
4874 | 4874 | | |
4875 | | - | |
4876 | | - | |
4877 | | - | |
4878 | | - | |
4879 | | - | |
| 4875 | + | |
4880 | 4876 | | |
4881 | 4877 | | |
4882 | 4878 | | |
| |||
4898 | 4894 | | |
4899 | 4895 | | |
4900 | 4896 | | |
4901 | | - | |
| 4897 | + | |
4902 | 4898 | | |
4903 | 4899 | | |
4904 | 4900 | | |
| |||
4969 | 4965 | | |
4970 | 4966 | | |
4971 | 4967 | | |
4972 | | - | |
| 4968 | + | |
4973 | 4969 | | |
4974 | 4970 | | |
4975 | 4971 | | |
| |||
4992 | 4988 | | |
4993 | 4989 | | |
4994 | 4990 | | |
4995 | | - | |
| 4991 | + | |
4996 | 4992 | | |
4997 | 4993 | | |
4998 | 4994 | | |
| |||
5008 | 5004 | | |
5009 | 5005 | | |
5010 | 5006 | | |
5011 | | - | |
| 5007 | + | |
5012 | 5008 | | |
5013 | 5009 | | |
5014 | 5010 | | |
| |||
5186 | 5182 | | |
5187 | 5183 | | |
5188 | 5184 | | |
5189 | | - | |
5190 | | - | |
5191 | | - | |
5192 | | - | |
5193 | | - | |
| 5185 | + | |
| 5186 | + | |
| 5187 | + | |
| 5188 | + | |
| 5189 | + | |
| 5190 | + | |
| 5191 | + | |
| 5192 | + | |
5194 | 5193 | | |
5195 | 5194 | | |
5196 | 5195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
118 | 123 | | |
119 | | - | |
120 | 124 | | |
121 | 125 | | |
122 | 126 | | |
| |||
139 | 143 | | |
140 | 144 | | |
141 | 145 | | |
| 146 | + | |
142 | 147 | | |
143 | 148 | | |
144 | 149 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
0 commit comments