nimsuggest supports prefix matching (first version)
This commit is contained in:
parent
e78bd69619
commit
3d46600a90
6 changed files with 126 additions and 174 deletions
|
|
@ -380,8 +380,7 @@ macro expect*(exceptions: varargs[typed], body: untyped): untyped =
|
|||
## expect IOError, OSError, ValueError, AssertionError:
|
||||
## defectiveRobot()
|
||||
let exp = callsite()
|
||||
template expectBody(errorTypes, lineInfoLit: expr,
|
||||
body: stmt): NimNode {.dirty.} =
|
||||
template expectBody(errorTypes, lineInfoLit, body): NimNode {.dirty.} =
|
||||
try:
|
||||
body
|
||||
checkpoint(lineInfoLit & ": Expect Failed, no exception was thrown.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue