Test case for #6163 (#8960)

* Test case for #6163
This commit is contained in:
genotrance
2018-09-14 10:09:16 -05:00
committed by LemonBoy
parent 382fe446c3
commit 7af659cf59

17
tests/openarray/t6163.nim Normal file
View File

@@ -0,0 +1,17 @@
discard """
exitcode: 0
targets: "c cpp js"
output: '''19316
'''
"""
from future import `->`, `=>`
from math import `^`, sum
from sequtils import filter, map, toSeq
proc f: int =
toSeq(10..<10_000).filter(a => a == ($a).map(d => (d.ord-'0'.ord).int^4).sum).sum
var a = f()
echo a