diff options
author | Araq <rumpf_a@web.de> | 2018-11-22 09:33:05 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2018-11-23 11:58:33 +0100 |
commit | e07188b79e884cf0a301f941dfb9074b81040d34 (patch) | |
tree | 66dc5e8b48e57377b1c214a941df6b979ba4d057 /tests | |
parent | 0c0f9ba974b3171c77e618882ac2a2681e0cedd7 (diff) | |
download | Nim-e07188b79e884cf0a301f941dfb9074b81040d34.tar.gz |
threw away a silly test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/objects/tobjects.nim | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/tests/objects/tobjects.nim b/tests/objects/tobjects.nim deleted file mode 100644 index 235e53da5..000000000 --- a/tests/objects/tobjects.nim +++ /dev/null @@ -1,61 +0,0 @@ -discard """ -action: run -input: ''' -Andreas -Rumpf -''' -outputsub: "Hallo Meister!" -""" - -type - TBase = object of RootObj - x, y: int - - TSubclassKind = enum ka, kb, kc, kd, ke, kf - TSubclass = object of TBase - case c: TSubclassKind - of ka, kb, kc, kd: - a, b: int - of ke: - d, e, f: char - else: nil - n: bool - -type - TMyObject = object of RootObj - case disp: range[0..4] - of 0: arg: char - of 1: s: string - else: wtf: bool - -var - x: TMyObject - -var - global: int - -var - s: string - r: float = 0.0 - i: int = 500 + 400 - -case i -of 500..999: write(stdout, "ha!\n") -of 1000..3000, 12: write(stdout, "ganz schön groß\n") -of 1, 2, 3: write(stdout, "1 2 oder 3\n") -else: write(stdout, "sollte nicht passieren\n") - -case readLine(stdin) -of "Rumpf": write(stdout, "Hallo Meister!\n") -of "Andreas": write(stdout, "Hallo Meister!\n") -else: write(stdout, "Nicht mein Meister!\n") - -global = global + 1 -write(stdout, "Hallo wie heißt du? \n") -s = readLine(stdin) -i = 0 -while i < len(s): - if s[i] == 'c': write(stdout, "'c' in deinem Namen gefunden\n") - i = i + 1 - -write(stdout, "Du heißt " & s) |