Skip to content

Split tests to avoid timeouts on the CI #4222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 30, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions tests/run-with-compiler/i3947b.check
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,3 @@ byte

classOf[Char].getCanonicalName()
char

classOf[Short].getCanonicalName()
short

classOf[Int].getCanonicalName()
int

classOf[Long].getCanonicalName()
long

classOf[Float].getCanonicalName()
float

classOf[Double].getCanonicalName()
double

classOf[Unit].getCanonicalName()
void
6 changes: 0 additions & 6 deletions tests/run-with-compiler/i3947b.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@ object Test {
test(classOf[Boolean])
test(classOf[Byte])
test(classOf[Char])
test(classOf[Short])
test(classOf[Int])
test(classOf[Long])
test(classOf[Float])
test(classOf[Double])
test(classOf[Unit])
}

}
9 changes: 9 additions & 0 deletions tests/run-with-compiler/i3947b2.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

classOf[Short].getCanonicalName()
short

classOf[Int].getCanonicalName()
int

classOf[Long].getCanonicalName()
long
23 changes: 23 additions & 0 deletions tests/run-with-compiler/i3947b2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

import scala.quoted._
import dotty.tools.dotc.quoted.Toolbox._

object Test {

def main(args: Array[String]): Unit = {

def test[T](clazz: java.lang.Class[T]): Unit = {
val lclazz = clazz.toExpr
val name = '{ (~lclazz).getCanonicalName }
println()
println(name.show)
println(name.run)
}

// primitives
test(classOf[Short])
test(classOf[Int])
test(classOf[Long])
}

}
9 changes: 9 additions & 0 deletions tests/run-with-compiler/i3947b3.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

classOf[Float].getCanonicalName()
float

classOf[Double].getCanonicalName()
double

classOf[Unit].getCanonicalName()
void
23 changes: 23 additions & 0 deletions tests/run-with-compiler/i3947b3.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@

import scala.quoted._
import dotty.tools.dotc.quoted.Toolbox._

object Test {

def main(args: Array[String]): Unit = {

def test[T](clazz: java.lang.Class[T]): Unit = {
val lclazz = clazz.toExpr
val name = '{ (~lclazz).getCanonicalName }
println()
println(name.show)
println(name.run)
}

// primitives
test(classOf[Float])
test(classOf[Double])
test(classOf[Unit])
}

}
9 changes: 0 additions & 9 deletions tests/run-with-compiler/i3947d.check
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,3 @@ Foo.Bar

classOf[Foo.Baz].getCanonicalName()
Foo.Baz

classOf[foo.Foo].getCanonicalName()
foo.Foo

classOf[foo.Foo#Bar].getCanonicalName()
foo.Foo.Bar

classOf[foo.Foo.Baz].getCanonicalName()
foo.Foo.Baz
13 changes: 0 additions & 13 deletions tests/run-with-compiler/i3947d.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@ object Test {
test(classOf[Foo])
test(classOf[Foo#Bar])
test(classOf[Foo.Baz])

test(classOf[foo.Foo])
test(classOf[foo.Foo#Bar])
test(classOf[foo.Foo.Baz])
}

}
Expand All @@ -32,12 +28,3 @@ class Foo {
object Foo {
class Baz
}

package foo {
class Foo {
class Bar
}
object Foo {
class Baz
}
}
9 changes: 9 additions & 0 deletions tests/run-with-compiler/i3947d2.check
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

classOf[foo.Foo].getCanonicalName()
foo.Foo

classOf[foo.Foo#Bar].getCanonicalName()
foo.Foo.Bar

classOf[foo.Foo.Baz].getCanonicalName()
foo.Foo.Baz
31 changes: 31 additions & 0 deletions tests/run-with-compiler/i3947d2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

import scala.quoted._
import dotty.tools.dotc.quoted.Toolbox._

object Test {

def main(args: Array[String]): Unit = {

def test[T](clazz: java.lang.Class[T]): Unit = {
val lclazz = clazz.toExpr
val name = '{ (~lclazz).getCanonicalName }
println()
println(name.show)
println(name.run)
}

test(classOf[foo.Foo])
test(classOf[foo.Foo#Bar])
test(classOf[foo.Foo.Baz])
}

}

package foo {
class Foo {
class Bar
}
object Foo {
class Baz
}
}