nimpretty: fixes #9506
This commit is contained in:
parent
0c3e6735ac
commit
03005fde99
4 changed files with 19 additions and 4 deletions
|
|
@ -17,7 +17,9 @@ else:
|
|||
|
||||
proc test(infile, ext: string) =
|
||||
if execShellCmd("$# -o:$# --backup:off $#" % [nimp, infile.changeFileExt(ext), infile]) != 0:
|
||||
quit("FAILURE")
|
||||
echo "FAILURE: nimpretty cannot prettify ", infile
|
||||
failures += 1
|
||||
return
|
||||
let nimFile = splitFile(infile).name
|
||||
let expected = dir / "expected" / nimFile & ".nim"
|
||||
let produced = dir / nimFile.changeFileExt(ext)
|
||||
|
|
|
|||
|
|
@ -7,3 +7,10 @@ foo bar
|
|||
|
||||
proc fun() =
|
||||
echo "ok1"
|
||||
|
||||
proc fun2(a = "fooo" & "bar" & "bar" & "bar" & "bar" & (
|
||||
"bar" & "bar" & "bar") & "bar" & "bar" & "bar" & "bar" & "bar" & "bar" &
|
||||
"bar" & "bar" & "bar"): auto =
|
||||
discard
|
||||
|
||||
fun2()
|
||||
|
|
|
|||
|
|
@ -7,3 +7,8 @@ foo bar
|
|||
|
||||
proc fun() =
|
||||
echo "ok1"
|
||||
|
||||
proc fun2(a = "fooo" & "bar" & "bar" & "bar" & "bar" & ("bar" & "bar" & "bar") & "bar" & "bar" & "bar" & "bar" & "bar" & "bar" & "bar" & "bar" & "bar"): auto =
|
||||
discard
|
||||
|
||||
fun2()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue