diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-04-30 22:26:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-01 07:26:52 +0200 |
commit | 82996aee3f4ab620a210ab73946f87d44052d999 (patch) | |
tree | cb931ff34a0ceb39acf967c0142ee8ee35f9d2a7 /tests/vm/tvmops.nim | |
parent | 1f1d85bb9c614d93ce38becdcc421dda00264a75 (diff) | |
download | Nim-82996aee3f4ab620a210ab73946f87d44052d999.tar.gz |
misc fixes: remove `forceConst` (obsolete by static), add more runnableExamples to system (#17896)
* misc fixes * add runnableExamples for compileOption * add runnableExamples for runnableExamples * move tconsteval => tconst * cleanup
Diffstat (limited to 'tests/vm/tvmops.nim')
-rw-r--r-- | tests/vm/tvmops.nim | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/vm/tvmops.nim b/tests/vm/tvmops.nim index c8febd982..632dcbee7 100644 --- a/tests/vm/tvmops.nim +++ b/tests/vm/tvmops.nim @@ -9,16 +9,6 @@ import os import math import strutils -template forceConst(a: untyped): untyped = - ## Force evaluation at CT, useful for example here: - ## `callFoo(forceConst(getBar1()), getBar2())` - ## instead of: - ## block: - ## const a = getBar1() - ## `callFoo(a, getBar2())` - const ret = a - ret - static: # TODO: add more tests block: #getAppFilename, gorgeEx, gorge @@ -51,6 +41,6 @@ static: block: # Check against bugs like #9176 - doAssert getCurrentCompilerExe() == forceConst(getCurrentCompilerExe()) + doAssert getCurrentCompilerExe() == getCurrentCompilerExe().static if false: #pending #9176 - doAssert gorgeEx("unexistant") == forceConst(gorgeEx("unexistant")) + doAssert gorgeEx("unexistant") == gorgeEx("unexistant").static |