Disabled external gits
This commit is contained in:
2
cs320-clp/test/resources/parser/outputs/Empty.scala
Normal file
2
cs320-clp/test/resources/parser/outputs/Empty.scala
Normal file
@@ -0,0 +1,2 @@
|
||||
object Empty {
|
||||
}
|
11
cs320-clp/test/resources/parser/outputs/IfCondition.scala
Normal file
11
cs320-clp/test/resources/parser/outputs/IfCondition.scala
Normal file
@@ -0,0 +1,11 @@
|
||||
object IfCondition {
|
||||
(if((
|
||||
val x: Boolean =
|
||||
true;
|
||||
x
|
||||
)) {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
})
|
||||
}
|
7
cs320-clp/test/resources/parser/outputs/Literals.scala
Normal file
7
cs320-clp/test/resources/parser/outputs/Literals.scala
Normal file
@@ -0,0 +1,7 @@
|
||||
object Literals {
|
||||
1;
|
||||
();
|
||||
();
|
||||
"Hello";
|
||||
true
|
||||
}
|
12
cs320-clp/test/resources/parser/outputs/MatchScrutinee.scala
Normal file
12
cs320-clp/test/resources/parser/outputs/MatchScrutinee.scala
Normal file
@@ -0,0 +1,12 @@
|
||||
object IfMatch {
|
||||
(if(true) {
|
||||
1
|
||||
} else {
|
||||
2
|
||||
}) match {
|
||||
case 1 =>
|
||||
true
|
||||
case 2 =>
|
||||
false
|
||||
}
|
||||
}
|
2
cs320-clp/test/resources/parser/passing/Empty.scala
Normal file
2
cs320-clp/test/resources/parser/passing/Empty.scala
Normal file
@@ -0,0 +1,2 @@
|
||||
object Empty {
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
object IfCondition {
|
||||
if (val x: Boolean = true; x) { 1 } else { 2 }
|
||||
}
|
3
cs320-clp/test/resources/parser/passing/Literals.scala
Normal file
3
cs320-clp/test/resources/parser/passing/Literals.scala
Normal file
@@ -0,0 +1,3 @@
|
||||
object Literals {
|
||||
1; (); ( ); "Hello"; true
|
||||
}
|
@@ -0,0 +1,6 @@
|
||||
object IfMatch {
|
||||
if (true) { 1 } else { 2 } match {
|
||||
case 1 => true
|
||||
case 2 => false
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user