summary refs log tree commit diff stats
path: root/tests/compile/tcodegenbug1.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-13 02:10:03 +0100
committerAraq <rumpf_a@web.de>2014-01-13 02:10:03 +0100
commit20b5f31c03fb556ec0aa2428a40adbac004d8987 (patch)
tree58086941e7d6bb8f480ca1173a95722ada9435b2 /tests/compile/tcodegenbug1.nim
parent51ee524109cf7e3e86c676bc1676063a01bfd979 (diff)
downloadNim-20b5f31c03fb556ec0aa2428a40adbac004d8987.tar.gz
new tester; all tests categorized
Diffstat (limited to 'tests/compile/tcodegenbug1.nim')
-rw-r--r--tests/compile/tcodegenbug1.nim67
1 files changed, 0 insertions, 67 deletions
diff --git a/tests/compile/tcodegenbug1.nim b/tests/compile/tcodegenbug1.nim
deleted file mode 100644
index 7d0fc4ad5..000000000
--- a/tests/compile/tcodegenbug1.nim
+++ /dev/null
@@ -1,67 +0,0 @@
-import os
-
-type
-  TStatusEnum* = enum
-    sUnknown = -1, sBuildFailure, sBuildInProgress, sBuildSuccess,
-    sTestFailure, sTestInProgress, sTestSuccess, # ORDER MATTERS!
-    sDocGenFailure, sDocGenInProgress, sDocGenSuccess,
-    sCSrcGenFailure, sCSrcGenInProgress, sCSrcGenSuccess
-
-  TStatus* = object
-    status*: TStatusEnum
-    desc*: string
-    hash*: string
-    
-proc initStatus*(): TStatus =
-  result.status = sUnknown
-  result.desc = ""
-  result.hash = ""
-
-proc isInProgress*(status: TStatusEnum): bool =
-  return status in {sBuildInProgress, sTestInProgress, sDocGenInProgress,
-                    sCSrcGenInProgress}
-
-proc `$`*(status: TStatusEnum): string =
-  case status
-  of sBuildFailure:
-    return "build failure"
-  of sBuildInProgress:
-    return "build in progress"
-  of sBuildSuccess:
-    return "build finished"
-  of sTestFailure:
-    return "testing failure"
-  of sTestInProgress:
-    return "testing in progress"
-  of sTestSuccess:
-    return "testing finished"
-  of sDocGenFailure:
-    return "documentation generation failed"
-  of sDocGenInProgress:
-    return "generating documentation"
-  of sDocGenSuccess:
-    return "documentation generation succeeded"
-  of sCSrcGenFailure:
-    return "csource generation failed"
-  of sCSrcGenInProgress:
-    return "csource generation in progress"
-  of sCSrcGenSuccess:
-    return "csource generation succeeded"
-  of sUnknown:
-    return "unknown"
-    
-proc makeCommitPath*(platform, hash: string): string =
-  return platform / "nimrod_" & hash.substr(0, 11) # 11 Chars.
-
-type
-  TFlag = enum
-    A, B, C, D
-
-  TFlags = set[TFlag]
-
-  TObj = object
-    x: int
-    flags: TFlags
-
-# have a proc taking TFlags as param and returning object having TFlags field
-proc foo(flags: TFlags): TObj = nil