summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/config.nims3
-rw-r--r--tests/generics/tobjecttyperel.nim2
-rw-r--r--tests/method/tgeneric_methods.nim2
-rw-r--r--tests/method/tmethods_old.nim2
-rw-r--r--tests/method/tvtable.nim5
5 files changed, 9 insertions, 5 deletions
diff --git a/tests/config.nims b/tests/config.nims
index 0e58c7c14..690123c4a 100644
--- a/tests/config.nims
+++ b/tests/config.nims
@@ -44,5 +44,4 @@ switch("define", "nimPreviewNonVarDestructor")
 
 switch("warningAserror", "UnnamedBreak")
 switch("legacy", "verboseTypeMismatch")
-switch("define", "nimPreviewVtables")
-
+switch("experimental", "vtables")
diff --git a/tests/generics/tobjecttyperel.nim b/tests/generics/tobjecttyperel.nim
index 0349184bb..6f223c154 100644
--- a/tests/generics/tobjecttyperel.nim
+++ b/tests/generics/tobjecttyperel.nim
@@ -1,5 +1,5 @@
 discard """
-  matrix: "-u:nimPreviewVtables"
+  matrix: "-d:nimInternalNonVtablesTesting"
   output: '''(peel: 0, color: 15)
 (color: 15)
 17
diff --git a/tests/method/tgeneric_methods.nim b/tests/method/tgeneric_methods.nim
index 0f1e7e1f0..f8d068cc5 100644
--- a/tests/method/tgeneric_methods.nim
+++ b/tests/method/tgeneric_methods.nim
@@ -1,5 +1,5 @@
 discard """

-  matrix: "--mm:arc --multimethods:on -u:nimPreviewVtables; --mm:refc --multimethods:on -u:nimPreviewVtables"

+  matrix: "--mm:arc --multimethods:on -d:nimInternalNonVtablesTesting; --mm:refc --multimethods:on -d:nimInternalNonVtablesTesting"

   output: '''wow2

 X 1

 X 3'''

diff --git a/tests/method/tmethods_old.nim b/tests/method/tmethods_old.nim
index cd3f67217..d24eb0cc7 100644
--- a/tests/method/tmethods_old.nim
+++ b/tests/method/tmethods_old.nim
@@ -1,5 +1,5 @@
 discard """
-  matrix: "--mm:arc -u:nimPreviewVtables"
+  matrix: "--mm:arc -d:nimInternalNonVtablesTesting"
   output: '''
 do nothing
 '''
diff --git a/tests/method/tvtable.nim b/tests/method/tvtable.nim
index 8d98dd42c..a1b33d6b7 100644
--- a/tests/method/tvtable.nim
+++ b/tests/method/tvtable.nim
@@ -1,3 +1,7 @@
+discard """

+  targets: "c cpp"

+"""

+

 type FooBase = ref object of RootObj

   dummy: int

 type Foo = ref object of FooBase

@@ -15,5 +19,6 @@ method bar(x: Foo2, a: float32)  =
 proc test() =

   var x = new Foo2

   x.bar(2.3)

+  doAssert x.value <= 2.3

 

 test()
\ No newline at end of file