Skip to content

Commit

Permalink
changed sbt version to 0.7.6.RC0 and added a test case for serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Debasish Ghosh committed Apr 7, 2011
1 parent e2063a5 commit 84c7b8c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion project/build.properties
Expand Up @@ -2,7 +2,7 @@
#Tue Mar 30 22:57:11 IST 2010
project.organization=net.debasishg
project.name=RedisClient
sbt.version=0.7.5.RC0
sbt.version=0.7.6.RC0
project.version=2.3.1
def.scala.version=2.7.7
build.scala.versions=2.8.1 2.9.0-SNAPSHOT
Expand Down
8 changes: 8 additions & 0 deletions src/test/scala/com/redis/SerializationSpec.scala
Expand Up @@ -73,4 +73,12 @@ class SerializationSpec extends Spec
r.hmget("hash2", "field1", "field2") should be(Some(Map("field1" -> "VAL1", "field2" -> "VAL2")))
}

it("should parse string as a bytearray with an implicit parser") {
val x = "debasish".getBytes("UTF-8")
r.set("key", x)
import Parse.Implicits.parseByteArray
val s = r.get[Array[Byte]]("key")
new String(s.get) should equal("debasish")
r.get[Array[Byte]]("keey") should equal(None)
}
}

0 comments on commit 84c7b8c

Please sign in to comment.