tintegerliterals.nim 178 B

12345678910
  1. # test the valid literals
  2. assert 0b10 == 2
  3. assert 0B10 == 2
  4. assert 0x10 == 16
  5. assert 0X10 == 16
  6. assert 0o10 == 8
  7. # the following is deprecated:
  8. assert 0c10 == 8
  9. assert 0C10 == 8