Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions io/src/test/scala/sbt/io/FileUtilitiesSpecification.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ import scala.reflect.ClassTag
object WriteContentSpecification extends Properties("Write content") {
sys.props.put("jna.nosys", "true")

property("Round trip string") = forAll(writeAndCheckString _)
property("Round trip bytes") = forAll(writeAndCheckBytes _)
property("Write string overwrites") = forAll(overwriteAndCheckStrings _)
property("Write bytes overwrites") = forAll(overwriteAndCheckBytes _)
property("Append string appends") = forAll(appendAndCheckStrings _)
property("Append bytes appends") = forAll(appendAndCheckBytes _)
property("Round trip string") = forAll(writeAndCheckString)
property("Round trip bytes") = forAll(writeAndCheckBytes)
property("Write string overwrites") = forAll(overwriteAndCheckStrings)
property("Write bytes overwrites") = forAll(overwriteAndCheckBytes)
property("Append string appends") = forAll(appendAndCheckStrings)
property("Append bytes appends") = forAll(appendAndCheckBytes)
property("Unzip doesn't stack overflow") = largeUnzip()
property("Unzip errors given parent traversal") = testZipSlip()

Expand Down
2 changes: 1 addition & 1 deletion io/src/test/scala/sbt/io/StashSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class StashSpec extends AnyFlatSpec with Matchers {
case _: TestError | _: TestException | _: TestRuntimeException => false
}

def allCorrect(s: Seq[File]): Unit = (s.toList zip TestFiles.toList).foreach((correct _).tupled)
def allCorrect(s: Seq[File]): Unit = (s.toList zip TestFiles.toList).foreach(correct.tupled)

def correct(check: File, ref: (File, String)): Unit = {
assert(check.exists)
Expand Down