* fix #17190 * cah * merge * Update tnimscriptwithnimext.nim * Update tnimscriptwithmacro.nims * Apply suggestions from code review * Delete tnimscriptwithnimext.nim * Update tests/tools/tnimscriptwithmacro.nims * fix * fix * add a test * Apply suggestions from code review Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> * Apply suggestions from code review * Update changelog.md Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Timothee Cour <timothee.cour2@gmail.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
This commit is contained in:
parent
fe9a37f2a5
commit
924ab3adea
5 changed files with 18 additions and 4 deletions
|
|
@ -238,6 +238,15 @@ tests/newconfig/bar/mfoo.nims""".splitLines
|
|||
expected.add &"Hint: used config file '{b}' [Conf]\n"
|
||||
doAssert outp.endsWith expected, outp & "\n" & expected
|
||||
|
||||
block: # mfoo2.customext
|
||||
let filename = testsDir / "newconfig/foo2/mfoo2.customext"
|
||||
let cmd = fmt"{nim} e --hint:conf {filename}"
|
||||
let (outp, exitCode) = execCmdEx(cmd, options = {poStdErrToStdOut})
|
||||
doAssert exitCode == 0
|
||||
var expected = &"Hint: used config file '{filename}' [Conf]\n"
|
||||
doAssert outp.endsWith "123" & "\n" & expected
|
||||
|
||||
|
||||
block: # nim --eval
|
||||
let opt = "--hints:off"
|
||||
check fmt"""{nim} {opt} --eval:"echo defined(nimscript)"""".execCmdEx == ("true\n", 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue