summary refs log tree commit diff stats
path: root/tests/effects
diff options
context:
space:
mode:
authoree7 <45465154+ee7@users.noreply.github.com>2020-12-07 23:26:14 +0100
committerGitHub <noreply@github.com>2020-12-07 23:26:14 +0100
commit2297b9623843bb4c1dbd201a8fb57f9ec334c164 (patch)
treeb31873e5a9857ea0f929fce3bfa2668719ca9cca /tests/effects
parent84fea7c1445475aba51d889668f250b0261443e4 (diff)
downloadNim-2297b9623843bb4c1dbd201a8fb57f9ec334c164.tar.gz
math.nim: Use `func` everywhere (#16285)
* math.nim: procs with {.noSideEffect} -> funcs

* math.nim: procs without {.noSideEffect.} -> funcs

* math.nim: proc -> func in links

* math.nim: proc -> func in doc comments

* test: add `math` to strictFuncs test
Diffstat (limited to 'tests/effects')
-rw-r--r--tests/effects/tstrict_funcs.nim10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/effects/tstrict_funcs.nim b/tests/effects/tstrict_funcs.nim
index 715278f51..532c6e75e 100644
--- a/tests/effects/tstrict_funcs.nim
+++ b/tests/effects/tstrict_funcs.nim
@@ -2,7 +2,15 @@ discard """
   cmd: "nim c --experimental:strictFuncs --experimental:views $file"
 """
 
-import tables, streams, nre, parsecsv, uri, httpcore, strutils
+import tables, streams, parsecsv
+# We import the below modules to check that they compile with `strictFuncs`.
+# They are otherwise unused in this file.
+import
+  httpcore,
+  math,
+  nre,
+  strutils,
+  uri
 
 type
   Contig2Reads = TableRef[string, seq[string]]