summary refs log tree commit diff stats
path: root/tests/modules/tstrutils_insert_sep.nim
blob: 775fe7da1017f82733a16fb59bab28d6c8972f80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
  output: '''
-100
-100,000
100,000
'''
"""
# test https://github.com/nim-lang/Nim/issues/11352

import strutils
echo insertSep($(-100), ',')
echo insertSep($(-100_000), ',')
echo insertSep($(100_000), ',')