|
46 | 46 | return ____exports" |
47 | 47 | `; |
48 | 48 |
|
| 49 | +exports[`console.error ("console.error()") 1`] = ` |
| 50 | +"local ____exports = {} |
| 51 | +function ____exports.__main(self) |
| 52 | + print() |
| 53 | +end |
| 54 | +return ____exports" |
| 55 | +`; |
| 56 | + |
| 57 | +exports[`console.error ("console.error(\\"Hello %%s\\", \\"there\\")") 1`] = ` |
| 58 | +"local ____exports = {} |
| 59 | +function ____exports.__main(self) |
| 60 | + print( |
| 61 | + string.format(\\"Hello %%s\\", \\"there\\") |
| 62 | + ) |
| 63 | +end |
| 64 | +return ____exports" |
| 65 | +`; |
| 66 | + |
| 67 | +exports[`console.error ("console.error(\\"Hello %s\\", \\"there\\")") 1`] = ` |
| 68 | +"local ____exports = {} |
| 69 | +function ____exports.__main(self) |
| 70 | + print( |
| 71 | + string.format(\\"Hello %s\\", \\"there\\") |
| 72 | + ) |
| 73 | +end |
| 74 | +return ____exports" |
| 75 | +`; |
| 76 | + |
| 77 | +exports[`console.error ("console.error(\\"Hello\\")") 1`] = ` |
| 78 | +"local ____exports = {} |
| 79 | +function ____exports.__main(self) |
| 80 | + print(\\"Hello\\") |
| 81 | +end |
| 82 | +return ____exports" |
| 83 | +`; |
| 84 | + |
| 85 | +exports[`console.error ("console.error(\\"Hello\\", \\"There\\")") 1`] = ` |
| 86 | +"local ____exports = {} |
| 87 | +function ____exports.__main(self) |
| 88 | + print(\\"Hello\\", \\"There\\") |
| 89 | +end |
| 90 | +return ____exports" |
| 91 | +`; |
| 92 | + |
| 93 | +exports[`console.info ("console.info()") 1`] = ` |
| 94 | +"local ____exports = {} |
| 95 | +function ____exports.__main(self) |
| 96 | + print() |
| 97 | +end |
| 98 | +return ____exports" |
| 99 | +`; |
| 100 | + |
| 101 | +exports[`console.info ("console.info(\\"Hello %%s\\", \\"there\\")") 1`] = ` |
| 102 | +"local ____exports = {} |
| 103 | +function ____exports.__main(self) |
| 104 | + print( |
| 105 | + string.format(\\"Hello %%s\\", \\"there\\") |
| 106 | + ) |
| 107 | +end |
| 108 | +return ____exports" |
| 109 | +`; |
| 110 | + |
| 111 | +exports[`console.info ("console.info(\\"Hello %s\\", \\"there\\")") 1`] = ` |
| 112 | +"local ____exports = {} |
| 113 | +function ____exports.__main(self) |
| 114 | + print( |
| 115 | + string.format(\\"Hello %s\\", \\"there\\") |
| 116 | + ) |
| 117 | +end |
| 118 | +return ____exports" |
| 119 | +`; |
| 120 | + |
| 121 | +exports[`console.info ("console.info(\\"Hello\\")") 1`] = ` |
| 122 | +"local ____exports = {} |
| 123 | +function ____exports.__main(self) |
| 124 | + print(\\"Hello\\") |
| 125 | +end |
| 126 | +return ____exports" |
| 127 | +`; |
| 128 | + |
| 129 | +exports[`console.info ("console.info(\\"Hello\\", \\"There\\")") 1`] = ` |
| 130 | +"local ____exports = {} |
| 131 | +function ____exports.__main(self) |
| 132 | + print(\\"Hello\\", \\"There\\") |
| 133 | +end |
| 134 | +return ____exports" |
| 135 | +`; |
| 136 | + |
49 | 137 | exports[`console.log ("console.log()") 1`] = ` |
50 | 138 | "local ____exports = {} |
51 | 139 | function ____exports.__main(self) |
@@ -143,3 +231,47 @@ function ____exports.__main(self) |
143 | 231 | end |
144 | 232 | return ____exports" |
145 | 233 | `; |
| 234 | + |
| 235 | +exports[`console.warn ("console.warn()") 1`] = ` |
| 236 | +"local ____exports = {} |
| 237 | +function ____exports.__main(self) |
| 238 | + print() |
| 239 | +end |
| 240 | +return ____exports" |
| 241 | +`; |
| 242 | + |
| 243 | +exports[`console.warn ("console.warn(\\"Hello %%s\\", \\"there\\")") 1`] = ` |
| 244 | +"local ____exports = {} |
| 245 | +function ____exports.__main(self) |
| 246 | + print( |
| 247 | + string.format(\\"Hello %%s\\", \\"there\\") |
| 248 | + ) |
| 249 | +end |
| 250 | +return ____exports" |
| 251 | +`; |
| 252 | + |
| 253 | +exports[`console.warn ("console.warn(\\"Hello %s\\", \\"there\\")") 1`] = ` |
| 254 | +"local ____exports = {} |
| 255 | +function ____exports.__main(self) |
| 256 | + print( |
| 257 | + string.format(\\"Hello %s\\", \\"there\\") |
| 258 | + ) |
| 259 | +end |
| 260 | +return ____exports" |
| 261 | +`; |
| 262 | + |
| 263 | +exports[`console.warn ("console.warn(\\"Hello\\")") 1`] = ` |
| 264 | +"local ____exports = {} |
| 265 | +function ____exports.__main(self) |
| 266 | + print(\\"Hello\\") |
| 267 | +end |
| 268 | +return ____exports" |
| 269 | +`; |
| 270 | + |
| 271 | +exports[`console.warn ("console.warn(\\"Hello\\", \\"There\\")") 1`] = ` |
| 272 | +"local ____exports = {} |
| 273 | +function ____exports.__main(self) |
| 274 | + print(\\"Hello\\", \\"There\\") |
| 275 | +end |
| 276 | +return ____exports" |
| 277 | +`; |
0 commit comments