Skip to content

Commit 12da529

Browse files
committed
Pending a test case for generating malformed UTF-8 strings, because in Java8 we cannot create invalid String for some reason
1 parent d95c10d commit 12da529

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

msgpack-core/src/test/scala/org/msgpack/core/MessagePackTest.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,16 +238,18 @@ class MessagePackTest extends MessagePackSpec {
238238

239239

240240
"report errors when packing/unpacking malformed strings" taggedAs("malformed") in {
241+
// TODO produce malformed utf-8 strings in Java8"
242+
pending
241243
// Create 100 malformed UTF8 Strings
242244
val r = new Random(0)
243-
val malformedStrings = Iterator.continually{
245+
val malformedStrings = Iterator.continually {
244246
val b = new Array[Byte](10)
245247
r.nextBytes(b)
246248
b
247249
}
248250
.filter(b => !isValidUTF8(new String(b))).take(100)
249251

250-
for(malformedBytes <- malformedStrings) {
252+
for (malformedBytes <- malformedStrings) {
251253
// Pack tests
252254
val malformed = new String(malformedBytes)
253255
try {

project/Build.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import xerial.sbt.Sonatype._
2626

2727
object Build extends Build {
2828

29-
val SCALA_VERSION = "2.11.1"
29+
val SCALA_VERSION = "2.11.2"
3030

3131
lazy val buildSettings = Defaults.coreDefaultSettings ++
3232
sonatypeSettings ++
@@ -135,7 +135,8 @@ object Build extends Build {
135135
"org.scalacheck" % "scalacheck_2.11" % "1.11.4" % "test",
136136
"org.xerial" % "xerial-core" % "3.3.0" % "test",
137137
"org.msgpack" % "msgpack" % "0.6.9" % "test",
138-
"com.novocode" % "junit-interface" % "0.10" % "test"
138+
"com.novocode" % "junit-interface" % "0.10" % "test",
139+
"commons-codec" % "commons-codec" % "1.9" % "test"
139140
)
140141
}
141142

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
sbt.version=0.13.5
1+
sbt.version=0.13.6
22

0 commit comments

Comments
 (0)