Skip to content
Snippets Groups Projects
Commit 8c6461fb authored by Régis Blanc's avatar Régis Blanc
Browse files

Some testcases

parent 5127cc7b
No related branches found
No related tags found
No related merge requests found
object MyTuple1 {
def foo(): Int = {
val t = (1, true)
val a1 = t._1
val a2 = t._2
a1
} ensuring( _ > 0)
}
object MyTuple2 {
def foo(): Int = {
val t = (1, true)
val a1 = t._1
val a2 = t._2
a1
} ensuring( _ < 0)
}
object MyTupleWrong {
def foo(): Int = {
val t = (1, true)
val a1 = t._1
val a2 = t._2
val a3 = t._3
a1
}
}
// vim: set ts=4 sw=4 et:
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment