summary refs log tree commit diff stats
path: root/tests/tuples/ttuples_various.nim
Commit message (Expand)AuthorAgeFilesLines
* const named tuple unpackingJasper Jenkins2019-05-011-0/+21
* Const tuple unpacking: add tests (#10100)ee72018-12-271-0/+16
* lots of small changesArne Döring2018-12-111-1/+1
* Merge tests into a larger file (part 8 of ∞) (#9583)Miran2018-11-061-0/+136
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
27
28
29
30

























                                                           

                                                   

                  
# Test the features that used to belong to the preprocessor

import
  times

#{.warning: "This is only a test warning!".}

const
  case2 = true
  case3 = true

when defined(case1):
  {.hint: "Case 1".}
  when case3:
    {.hint: "Case 1.3".}
elif case2:
  {.hint: "Case 2".}
  when case3:
    {.hint: "Case 2.3".}
elif case3:
  {.hint: "Case 3".}
else:
  {.hint: "unknown case".}

var
  s: string
write(stdout, "compiled at " & system.CompileDate &
              " " & CompileTime & "\n")
echo getDateStr()
echo getClockStr()