make megatest consistent with unjoined tests wrt newlines, honor newlines in output spec (#16151)
* fix megatest newlines * still allow missing trailing newline for now but in a more strict way than before
This commit is contained in:
parent
157e7820f1
commit
b809562c7c
33 changed files with 110 additions and 96 deletions
|
|
@ -1,6 +1,8 @@
|
|||
discard """
|
||||
output: '''
|
||||
9.0'''
|
||||
9.0
|
||||
|
||||
'''
|
||||
"""
|
||||
|
||||
### bug #6773
|
||||
|
|
@ -41,6 +43,7 @@ proc `^`(x: vfloat, exp: static[float]): vfloat =
|
|||
|
||||
proc `$`(x: vfloat): string =
|
||||
let y = cast[ptr float](unsafeAddr x)
|
||||
# xxx not sure if intentional in this issue, but this returns ""
|
||||
echo y[]
|
||||
|
||||
let x = set1(9.0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue