summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2018-09-14 22:17:27 +0200
committerAraq <rumpf_a@web.de>2018-09-14 22:17:27 +0200
commit9995f50050298dc435a237b29dd0ff258ba25b9b (patch)
tree2d2d734e4e1e5e81db57bf312a66797d37209c1a /tests
parentfba9c2aef6a78ed87734b8d245583f1931adc50f (diff)
parent7af659cf59ce85ea1d928c17475f5174a6ea4e52 (diff)
downloadNim-9995f50050298dc435a237b29dd0ff258ba25b9b.tar.gz
Merge branch 'devel' of github.com:nim-lang/Nim into devel
Diffstat (limited to 'tests')
-rw-r--r--tests/openarray/t6163.nim17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/openarray/t6163.nim b/tests/openarray/t6163.nim
new file mode 100644
index 000000000..ec8c3cd0b
--- /dev/null
+++ b/tests/openarray/t6163.nim
@@ -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
\ No newline at end of file