strictFuncs+views: add test that imports stdlib modules (#16878)
This commit attempts to improve testing of strictFuncs and views, and
prevent regressions like #16873 (resolved by 0b01eddace).
We previously only explicitly tested strictFuncs and views with a
smaller number of stdlib modules, mostly in:
- tests/effects/tstrict_funcs.nim
- tests/views/tcan_compile_nim.nim
Note that this commit leaves the `pegs` module commented out; it
cannot currently be compiled with `--experimental:views` (see #16892).
Note also that this commit is not sufficient to test strictFuncs and
views, but it does detect a subset of problems.
This commit is contained in:
parent
6f1289b80c
commit
14c61ecf24
3 changed files with 198 additions and 12 deletions
|
|
@ -3,18 +3,6 @@ discard """
|
|||
"""
|
||||
|
||||
import tables, streams, parsecsv
|
||||
# We import the below modules to check that they compile with `strictFuncs`.
|
||||
# They are otherwise unused in this file.
|
||||
import
|
||||
complex,
|
||||
critbits,
|
||||
httpcore,
|
||||
math,
|
||||
nre,
|
||||
rationals,
|
||||
sequtils,
|
||||
strutils,
|
||||
uri
|
||||
|
||||
type
|
||||
Contig2Reads = TableRef[string, seq[string]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue