forked from scala/scala
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request scala#10352 from som-snytt/issue/12757-glblub-loop
More tailrec in handling long seq
- Loading branch information
Showing
7 changed files
with
125 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
import scala.tools.partest.DirectTest | ||
|
||
object Test extends DirectTest { | ||
def header = """|object Test extends App { | ||
| val myStrings: List[String] = List(""".stripMargin.linesIterator | ||
def footer = """| ) | ||
| println(myStrings.mkString(",")) | ||
|}""".stripMargin.linesIterator | ||
def values = Iterator.tabulate(4000)(i => s" \"$i\",") | ||
def code = (header ++ values ++ footer).mkString("\n") | ||
|
||
override def extraSettings: String = "-usejavacp -J-Xms256k" | ||
|
||
def show() = assert(compile()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
import scala.tools.partest.DirectTest | ||
|
||
object Test extends DirectTest { | ||
def header = """|object Test extends App { | ||
| val myInts: List[Int] = List(""".stripMargin.linesIterator | ||
def footer = """| ) | ||
| println(myInts.mkString(",")) | ||
|}""".stripMargin.linesIterator | ||
def values = Iterator.tabulate(4000)(i => s" $i,") | ||
def code = (header ++ values ++ footer).mkString("\n") | ||
|
||
override def extraSettings: String = "-usejavacp -J-Xms256k" | ||
|
||
def show() = assert(compile()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
import scala.tools.partest.DirectTest | ||
|
||
object Test extends DirectTest { | ||
def header = """|object Test extends App { | ||
| val myStrings = List( | ||
| 42, | ||
| Test, | ||
|""".stripMargin.linesIterator | ||
def footer = """| ) | ||
| println(myStrings.mkString(",")) | ||
|}""".stripMargin.linesIterator | ||
def values = Iterator.tabulate(4000)(i => s" \"$i\",") | ||
def code = (header ++ values ++ footer).mkString("\n") | ||
|
||
override def extraSettings: String = "-usejavacp -J-Xms256k" | ||
|
||
def show() = assert(compile()) | ||
} |