tstrutils_insert_sep.nim 218 B

12345678910111213
  1. discard """
  2. output: '''
  3. -100
  4. -100,000
  5. 100,000
  6. '''
  7. """
  8. # test https://github.com/nim-lang/Nim/issues/11352
  9. import strutils
  10. echo insertSep($(-100), ',')
  11. echo insertSep($(-100_000), ',')
  12. echo insertSep($(100_000), ',')