This commit is contained in:
Araq 2018-03-05 13:38:32 +01:00
commit 15e044416f
2 changed files with 4 additions and 2 deletions

View file

@ -1,12 +1,14 @@
discard """
cmd: r"nim c --hints:on $options --threads:on $file"
output: '''@["", "a", "ha", "hi", "ho", "huu"]'''
"""
import algorithm
# bug #1657
var modules = @["hi", "ho", "ha", "huu"]
var modules = @["hi", "ho", "", "a", "ha", "huu"]
sort(modules, system.cmp)
echo modules
type
MyType = object