Nim/tests/js
Jake Leahy 7ae7832f76
JS backend properly extends string with setLen (#21087)
* Add test case

* Extend string with '0' when setting length to be longer
2022-12-13 08:43:37 +01:00
..
readme.md tests/tuples/ttuples_issues.nim: test on all backends + various improvements (#16907) 2021-02-02 20:17:13 +01:00
t6612.nim
t7109.nim
t7127.nim
t7224.nim
t7249.nim
t7534.nim
t8231.nim
t8821.nim fix #8821 JS codegen can produce extreme switch statements with case … (#20548) 2022-10-14 12:21:02 +02:00
t8914.nim
t9410.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
t11166.nim fixed dot operator recursive loop & macro suggest (#16922) 2021-02-15 09:51:05 +01:00
t11353.nim
t11354.nim
t11697.nim
t12223.nim
t12303.nim
t12672.nim
t14153.nim
t14570.nim
t17177.nim fix #17177 (#17243) 2021-03-03 11:57:34 +01:00
t20233.nim fix #20233 Float ranges in case statement in JS crash compiler (#20349) 2022-09-14 17:16:34 +02:00
t20235.nim JS backend properly extends string with setLen (#21087) 2022-12-13 08:43:37 +01:00
tarrayboundscheck.nim
tasyncjs.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tasyncjs_bad.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tasyncjs_pragma.nim followup #16871 asyncjs.then: allow pipelining procs returning futures (#17189) 2021-03-04 14:00:04 +01:00
tbasics.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tbigint_backend.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tbyvar.nim style usages part one (openarray => openArray) (#19321) 2022-01-04 13:29:50 +01:00
tclosures.nim fix noDecl => nodecl (#16760) 2021-01-20 11:08:42 +01:00
tcodegendeclproc.nim
tcodegendeclvar.nim
tconsole.nim
tcopying.nim
tcsymbol.nim undefine C symbols in JS backend [backport:1.6] (#19437) 2022-02-04 17:10:24 -05:00
tderef.nim
tdiscard.nim
tdollar_float.nim
temptyseq.nim
tenumhole.nim
tenumnegkey.nim
tenumoffset.nim
test1.nim
test2.nim
testmagic.nim
testobjs.nim
testtojsstr.nim
tfieldchecks.nim deprecate unsafeAddr; extend addr (#19373) 2022-01-16 11:08:38 +01:00
tfloatround.nim
tglobal.nim
timplicit_nodecl.nim
tindexdefect.nim [js] add testcase for array indexDefect and remove todo (#19838) 2022-06-10 20:33:44 +02:00
tjsffi.nim deprecate do: meaning do (): + misc cleanup (#20927) 2022-12-06 09:44:26 +01:00
tjsffi_old.nim deprecate do: meaning do (): + misc cleanup (#20927) 2022-12-06 09:44:26 +01:00
tjshello.nim
tjshello_stacktrace.nim
tlent.nim Optimize lent in JS [backport:1.6] (#19393) 2022-01-17 13:03:40 +01:00
tmangle.nim
tmodify_cstring.nim
tnativeexc.nim
tnilstrs.nim [backport:1.4] JS cstring null fixes (#16979) 2021-02-11 17:04:32 +01:00
tobjfieldbyvar.nim
tos.nim envPairs works in vm, nims (#18615) 2021-09-29 09:32:39 +02:00
trefbyvar.nim
trepr.nim fixes devel CI (#20512) 2022-10-07 15:00:15 +02:00
treprinifexpr.nim
tseqops.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tsourcemap.nim Refactor JS sourcemap generator (#21053) 2022-12-13 12:21:51 +08:00
tstdlib_imports.nim build the documentation of official packages (#20986) 2022-12-06 22:37:16 +08:00
tstdlib_various.nim fix #16993, #18054, #17835 runnableExamples now works with templates and nested templates (#18082) 2021-06-02 09:02:14 -07:00
tstreams.nim
tstring_assignment.nim
tstringitems.nim
ttempgen.nim
tthismangle.nim
ttryexceptnewsyntax.nim
ttypedarray.nim array literals uses typed arrays; fix a jsgen bug (#16850) 2021-02-15 11:28:11 +01:00
tunion.nim
tunittest_error.nim
tunittest_error2.nim fix CI failure(upstream changes) (#18820) 2021-09-08 11:47:14 +02:00
tvarargs.nim
twritestacktrace.nim add simple writeStackTrace for JS backend (#16016) 2020-11-24 19:45:06 +01:00

notes

Prefer moving tests to a non-js directory so that they get tested across all backends automatically. Ideally, tests/js should be reserved to code that only makes sense in js.

Note also that tests for a js specific module (e.g.: std/jsbigints) belong to tests/stdlib, (e.g.: tests/stdlib/tjsbigints.nim)