summary refs log tree commit diff stats
path: root/tests/template/tissue993.nim
diff options
context:
space:
mode:
authorSimon Hafner <hafnersimon@gmail.com>2015-01-29 05:30:55 -0600
committerSimon Hafner <hafnersimon@gmail.com>2015-01-29 05:30:55 -0600
commit11292a9e0b2d614948c8b7cca780a1545a2cce34 (patch)
treecfea340a6e46884e52527948041d02001aca982c /tests/template/tissue993.nim
parentd4786976dd80ad7aef531b259cf04ab65e80dabc (diff)
downloadNim-11292a9e0b2d614948c8b7cca780a1545a2cce34.tar.gz
Fixes #1959, rounding floats in JS
Diffstat (limited to 'tests/template/tissue993.nim')
0 files changed, 0 insertions, 0 deletions
2bdac2a987c47c6698e99b1e6645a05811'>^
aeb050613 ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
           





                                                                                                                                                                                                                                                                                      
 

                       
                                            
 










                                                                  



                              
discard """
  output: "{a, b}{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'}"
"""

type
  TEnum = enum
    a, b

var val = {a, b}
stdout.write(repr(val))
stdout.writeLine(repr({'a'..'z', 'A'..'Z'}))

type
  TObj {.pure, inheritable.} = object
    data: int
  TFoo = ref object of TObj
    d2: float
var foo: TFoo
new(foo)

when false:
  # cannot capture this output as it contains a memory address :-/
  echo foo.repr
#var testseq: seq[string] = @[
#  "a", "b", "c", "d", "e"
#]
#echo(repr(testseq))