diff --git a/tests/ic/config.nims b/tests/ic/config.nims deleted file mode 100644 index a622ec3091..0000000000 --- a/tests/ic/config.nims +++ /dev/null @@ -1 +0,0 @@ ---mm:refc diff --git a/tests/ic/mbaseobj.nim b/tests/ic/mbaseobj.nim deleted file mode 100644 index 0f4e4a90d3..0000000000 --- a/tests/ic/mbaseobj.nim +++ /dev/null @@ -1,7 +0,0 @@ - -type - Base* = ref object of RootObj - s*: string - -method m*(b: Base) {.base.} = - echo "Base ", b.s diff --git a/tests/ic/mcompiletime_counter.nim b/tests/ic/mcompiletime_counter.nim deleted file mode 100644 index 6fc7b3f2a8..0000000000 --- a/tests/ic/mcompiletime_counter.nim +++ /dev/null @@ -1,15 +0,0 @@ - -import std/macros -import std/macrocache - -const myCounter = CacheCounter"myCounter" - -proc getUniqueId*(): int {.compileTime.} = - inc myCounter - result = myCounter.value - -static: - myCounter.inc(3) - assert myCounter.value == 3 - - diff --git a/tests/ic/mdefconverter.nim b/tests/ic/mdefconverter.nim deleted file mode 100644 index d0a23f801b..0000000000 --- a/tests/ic/mdefconverter.nim +++ /dev/null @@ -1,2 +0,0 @@ - -converter toBool*(x: int): bool = x != 0 diff --git a/tests/ic/mimports.nim b/tests/ic/mimports.nim deleted file mode 100644 index 50773e001a..0000000000 --- a/tests/ic/mimports.nim +++ /dev/null @@ -1,9 +0,0 @@ -from mimportsb {.all.} import fnb1, hfnb3 - -proc fn1*(): int = 1 -proc fn2*(): int = 2 -proc hfn3(): int = 3 -proc hfn4(): int = 4 -proc hfn5(): int = 5 - -export mimportsb.fnb2, hfnb3 diff --git a/tests/ic/mimportsb.nim b/tests/ic/mimportsb.nim deleted file mode 100644 index 3cae925c52..0000000000 --- a/tests/ic/mimportsb.nim +++ /dev/null @@ -1,4 +0,0 @@ -proc fnb1*(): int = 1 -proc fnb2*(): int = 2 -proc hfnb3(): int = 3 -proc hfnb4(): int = 4 diff --git a/tests/ic/tcompiletime_counter.nim b/tests/ic/tcompiletime_counter.nim deleted file mode 100644 index 695a6ec277..0000000000 --- a/tests/ic/tcompiletime_counter.nim +++ /dev/null @@ -1,24 +0,0 @@ -discard """ - output: '''id 4''' -""" - -import mcompiletime_counter - -const intId = getUniqueId() - -echo "id ", intId - -#!EDIT!# - -discard """ - output: '''id 4 5''' -""" - -import mcompiletime_counter - -const - intId = getUniqueId() - floatId = getUniqueId() - -echo "id ", intId, " ", floatId - diff --git a/tests/ic/tconverter.nim b/tests/ic/tconverter.nim deleted file mode 100644 index aecdf4b484..0000000000 --- a/tests/ic/tconverter.nim +++ /dev/null @@ -1,18 +0,0 @@ -discard """ - output: "yes" -""" - -import mdefconverter - -echo "yes" - -#!EDIT!# - -discard """ - output: "converted int to bool" -""" - -import mdefconverter - -if 4: - echo "converted int to bool" diff --git a/tests/ic/tgenericinst.nim b/tests/ic/tgenericinst.nim deleted file mode 100644 index 3346764f54..0000000000 --- a/tests/ic/tgenericinst.nim +++ /dev/null @@ -1,11 +0,0 @@ -discard """ - cmd: "nim cpp --incremental:on $file" -""" - -{.emit:"""/*TYPESECTION*/ -#include - struct Foo { }; -""".} - -type Foo {.importcpp.} = object -echo $Foo() #Notice the generic is instantiate in the this module if not, it wouldnt find Foo \ No newline at end of file diff --git a/tests/ic/tgenerics.nim b/tests/ic/tgenerics.nim deleted file mode 100644 index 138799e853..0000000000 --- a/tests/ic/tgenerics.nim +++ /dev/null @@ -1,38 +0,0 @@ -discard """ - output: "bar" -""" - -import tables - -var tab: Table[string, string] - -tab["foo"] = "bar" -echo tab["foo"] - -#!EDIT!# - -discard """ - output: "bar 3" -""" - -import tables - -var tab: Table[string, string] -var tab2: Table[string, int] - -tab["foo"] = "bar" -tab2["meh"] = 3 -echo tab["foo"], " ", tab2["meh"] - -#!EDIT!# - -discard """ - output: "3" -""" - -import tables - -var tab2: Table[string, int] - -tab2["meh"] = 3 -echo tab2["meh"] diff --git a/tests/ic/thallo.nim b/tests/ic/thallo.nim deleted file mode 100644 index 7ead7c8bac..0000000000 --- a/tests/ic/thallo.nim +++ /dev/null @@ -1,28 +0,0 @@ -discard """ - output: "Hello World" -""" - -const str = "Hello World" -echo str - -# Splitters are done with this special comment: - -#!EDIT!# - -discard """ - output: "Hello World B" -""" - -const str = "Hello World" -echo str, " B" - -#!EDIT!# - -discard """ - output: "Hello World C" -""" - -const str = "Hello World" -var x = 7 -if 3+4 == x: - echo str, " C" diff --git a/tests/ic/timportcalias.nim b/tests/ic/timportcalias.nim deleted file mode 100644 index 2f6c20f4b5..0000000000 --- a/tests/ic/timportcalias.nim +++ /dev/null @@ -1,7 +0,0 @@ -import ../ccgbugs/mseq_importc_alias - -type CIntAlias = cint - -var values: seq[CIntAlias] -resizeCints(values, 2) -doAssert cintLen(values) == 2 diff --git a/tests/ic/timports.nim b/tests/ic/timports.nim deleted file mode 100644 index 518a689f58..0000000000 --- a/tests/ic/timports.nim +++ /dev/null @@ -1,29 +0,0 @@ -import mimports -doAssert fn1() == 1 -doAssert not declared(hfn3) - -#!EDIT!# - -import mimports {.all.} -doAssert fn1() == 1 -doAssert declared(hfn3) -doAssert hfn3() == 3 -doAssert mimports.hfn4() == 4 - -# reexports -doAssert not declared(fnb1) -doAssert not declared(hfnb4) -doAssert fnb2() == 2 -doAssert hfnb3() == 3 - -#!EDIT!# - -from mimports {.all.} import hfn3 -doAssert not declared(fn1) -from mimports {.all.} as bar import fn1 -doAssert fn1() == 1 -doAssert hfn3() == 3 -doAssert not declared(hfn4) -doAssert declared(mimports.hfn4) -doAssert mimports.hfn4() == 4 -doAssert bar.hfn4() == 4 diff --git a/tests/ic/tmethods.nim b/tests/ic/tmethods.nim deleted file mode 100644 index 251f26889e..0000000000 --- a/tests/ic/tmethods.nim +++ /dev/null @@ -1,28 +0,0 @@ -discard """ - output: '''Base abc''' -""" - -import mbaseobj - -var c = Base(s: "abc") -m c - -#!EDIT!# - -discard """ - output: '''Base abc -Inherited abc''' -""" - -import mbaseobj - -type - Inherited = ref object of Base - -method m(i: Inherited) = - procCall m(Base i) - echo "Inherited ", i.s - -var c = Inherited(s: "abc") -m c -