aboutsummaryrefslogtreecommitdiff
path: root/tests/pending/pos
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 18:15:19 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-09 23:14:02 +0200
commitdad71ca7c5311c5741aecc497de83f02d5f35f6e (patch)
tree17d91106a693a98b2620d5c5eae52cd9cc67abac /tests/pending/pos
parent74957b3b20aae3a0a2c7a41000c5a1424586f412 (diff)
downloaddotty-dad71ca7c5311c5741aecc497de83f02d5f35f6e.tar.gz
dotty-dad71ca7c5311c5741aecc497de83f02d5f35f6e.tar.bz2
dotty-dad71ca7c5311c5741aecc497de83f02d5f35f6e.zip
Ensure spaces after `if` in Dotty tests.
Diffstat (limited to 'tests/pending/pos')
-rw-r--r--tests/pending/pos/t4579.scala2
-rw-r--r--tests/pending/pos/t5012.scala2
-rw-r--r--tests/pending/pos/t5541.scala4
-rw-r--r--tests/pending/pos/tcpoly_seq.scala2
-rw-r--r--tests/pending/pos/tcpoly_seq_typealias.scala2
-rw-r--r--tests/pending/pos/unapplySeq.scala2
6 files changed, 7 insertions, 7 deletions
diff --git a/tests/pending/pos/t4579.scala b/tests/pending/pos/t4579.scala
index 0db527318..8ce657eff 100644
--- a/tests/pending/pos/t4579.scala
+++ b/tests/pending/pos/t4579.scala
@@ -400,7 +400,7 @@ object LispAny extends Lisp {
val globalEnv = EmptyEnvironment
.extend("=", Lambda{
- case List(arg1, arg2) => if(arg1 == arg2) 1 else 0})
+ case List(arg1, arg2) => if (arg1 == arg2) 1 else 0})
.extend("+", Lambda{
case List(arg1: Int, arg2: Int) => arg1 + arg2
case List(arg1: String, arg2: String) => arg1 + arg2})
diff --git a/tests/pending/pos/t5012.scala b/tests/pending/pos/t5012.scala
index 772b8f448..84404495c 100644
--- a/tests/pending/pos/t5012.scala
+++ b/tests/pending/pos/t5012.scala
@@ -4,7 +4,7 @@ class D {
class C {
def m: D = {
- if("abc".length == 0) {
+ if ("abc".length == 0) {
object p // (program point 2)
}
null
diff --git a/tests/pending/pos/t5541.scala b/tests/pending/pos/t5541.scala
index 90e5e4130..54e2b6518 100644
--- a/tests/pending/pos/t5541.scala
+++ b/tests/pending/pos/t5541.scala
@@ -36,9 +36,9 @@ class HASkipListView[ S <: Sys[ S ], A ]( private val l: HASkipList[ S, A ])( im
val szm = sz - 1
val keys = IndexedSeq.tabulate( sz ) { i =>
val key = n.key( i )
- (key, if( isRight && i == szm ) "M" else key.toString)
+ (key, if ( isRight && i == szm ) "M" else key.toString)
}
- val chbo = if( n.isLeaf ) None else {
+ val chbo = if ( n.isLeaf ) None else {
val nb = n.asBranch
Some( IndexedSeq.tabulate( sz )( i => buildBoxMap( nb.down( i ), isRight && (i == szm) )))
}
diff --git a/tests/pending/pos/tcpoly_seq.scala b/tests/pending/pos/tcpoly_seq.scala
index 731fe048a..e8711d1c4 100644
--- a/tests/pending/pos/tcpoly_seq.scala
+++ b/tests/pending/pos/tcpoly_seq.scala
@@ -125,7 +125,7 @@ trait HOSeq {
// TODO: the var tl approach does not seem to work because subtyping isn't fully working yet
final case class ::[+b](hd: b, private val tl: List[b]) extends List[b] {
def head = hd
- def tail = if(tl==null) this else tl // hack
+ def tail = if (tl==null) this else tl // hack
override def isEmpty: Boolean = false
}
diff --git a/tests/pending/pos/tcpoly_seq_typealias.scala b/tests/pending/pos/tcpoly_seq_typealias.scala
index 8d2f6e7c3..b758ecd99 100644
--- a/tests/pending/pos/tcpoly_seq_typealias.scala
+++ b/tests/pending/pos/tcpoly_seq_typealias.scala
@@ -129,7 +129,7 @@ trait HOSeq {
// TODO: the var tl approach does not seem to work because subtyping isn't fully working yet
final case class ::[+b](hd: b, private val tl: List[b]) extends List[b] {
def head = hd
- def tail = if(tl==null) this else tl // hack
+ def tail = if (tl==null) this else tl // hack
override def isEmpty: Boolean = false
}
diff --git a/tests/pending/pos/unapplySeq.scala b/tests/pending/pos/unapplySeq.scala
index e642fd8d6..cefe1cb8f 100644
--- a/tests/pending/pos/unapplySeq.scala
+++ b/tests/pending/pos/unapplySeq.scala
@@ -1,6 +1,6 @@
object FooSeq {
def unapplySeq(x:Any): Option[Product2[Int,Seq[String]]] = {
- if(x.isInstanceOf[Bar]) {
+ if (x.isInstanceOf[Bar]) {
val y = x.asInstanceOf[Bar]
Some(y.size, y.name)
} else None