Permalink
Browse files

changed sbt version to 0.7.6.RC0 and added a test case for serialization

  • Loading branch information...
1 parent e2063a5 commit 84c7b8c6c498a5428cc9643458aa21b988a4f76b Debasish Ghosh committed Apr 7, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −1 project/build.properties
  2. +8 −0 src/test/scala/com/redis/SerializationSpec.scala
@@ -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
@@ -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.