From ecb3590102a6ee5a77d52075e136337c9ec6c4c5 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 5 Apr 2011 00:55:32 +0200 Subject: fixes #25 --- tests/accept/run/trepr.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/accept/run/trepr.nim (limited to 'tests/accept/run/trepr.nim') diff --git a/tests/accept/run/trepr.nim b/tests/accept/run/trepr.nim new file mode 100644 index 000000000..19ed8e180 --- /dev/null +++ b/tests/accept/run/trepr.nim @@ -0,0 +1,14 @@ +discard """ + file: "trepr.nim" + 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.writeln(repr({'a'..'z', 'A'..'Z'})) + + -- cgit 1.4.1-2-gfad0