mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-10 05:38:10 +00:00
fixes #11004
This commit is contained in:
@@ -8,6 +8,11 @@ import strutils, os
|
||||
import core / allocators
|
||||
import system / ansi_c
|
||||
|
||||
# bug #11004
|
||||
proc retTuple(): (seq[int], int) =
|
||||
# XXX this doesn't allocate yet but probably it should
|
||||
return (@[1], 1)
|
||||
|
||||
proc nonStaticTests =
|
||||
doAssert formatBiggestFloat(1234.567, ffDecimal, -1) == "1234.567000"
|
||||
when not defined(js):
|
||||
@@ -177,6 +182,8 @@ proc staticTests =
|
||||
doAssert s.splitWhitespace(maxsplit=3) == @["this", "is", "an", "example "]
|
||||
doAssert s.splitWhitespace(maxsplit=4) == @["this", "is", "an", "example"]
|
||||
|
||||
discard retTuple()
|
||||
|
||||
nonStaticTests()
|
||||
staticTests()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user