Skip to content

Commit

Permalink
tests for specs2-scalaz added
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirNik committed Aug 28, 2013
1 parent b40d795 commit de7f42f
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/main/scala/com/tree/printer/Internal.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package imp

trait Tuples{
//trait SomeTrait

implicit def implDef(t: String): Any = new { val value = t } with Serializable


def a(x: Int) = {
class A extends Serializable { val a = x }
}

}

final class A

class B(x: Int)

trait C

class Test extends {val t = "gg"}

class Test2(x: Int) extends {val t = "gg"} with B(5)

class Test3 extends {val t = "ll"; val z = "rr"; type z = String}

class Test4 extends {val t = "ll"; protected val z = "rr"; type z = String} with Serializable

final class FinalTest{
final class Test1
def testingFinal{
final class Test2
}

}
19 changes: 19 additions & 0 deletions src/main/scala/com/tree/printer/ZIfTesting.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
class A{
def test =
(if (true) "ddd" else "ddd") toString
}

case object TestObject

trait Testing{
abstract class MyAbstract
case object MyFirst extends MyAbstract
case object MySecond extends MyAbstract

val x: MyAbstract = MyFirst

x match {
case aOrB @ (MyFirst | MySecond) => true
case _ => false
}
}

0 comments on commit de7f42f

Please sign in to comment.