[Rprotobuf-commits] r543 - in pkg: . inst/unitTests man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sun Dec 15 00:19:50 CET 2013
Author: murray
Date: 2013-12-15 00:19:49 +0100 (Sun, 15 Dec 2013)
New Revision: 543
Modified:
pkg/ChangeLog
pkg/inst/unitTests/runit.bytes.R
pkg/man/clone.Rd
Log:
Add a unit test for correct behavior of required bytes fields for
issue reported on the list. Also, fix a documentation typo.
Modified: pkg/ChangeLog
===================================================================
--- pkg/ChangeLog 2013-11-15 03:30:47 UTC (rev 542)
+++ pkg/ChangeLog 2013-12-14 23:19:49 UTC (rev 543)
@@ -1,3 +1,9 @@
+2013-12-14 Murray Stokely <murray at FreeBSD.org>
+
+ * inst/unitTests/runit.bytes.R (test.all): Verify raw(10) can be
+ set to required bytes fields to verify correct behavior for use
+ case mentioned on rprotobuf-yada list.
+
2013-11-13 Murray Stokely <murray at FreeBSD.org>
* R/extensions.R: Give a user friendly error message if someone tries
Modified: pkg/inst/unitTests/runit.bytes.R
===================================================================
--- pkg/inst/unitTests/runit.bytes.R 2013-11-15 03:30:47 UTC (rev 542)
+++ pkg/inst/unitTests/runit.bytes.R 2013-12-14 23:19:49 UTC (rev 543)
@@ -18,4 +18,9 @@
checkEquals(rawToChar(test1$req), "abc")
checkEquals(rawToChar(test1$opt), "hello world")
checkEquals(test1$rep, list(charToRaw("def"), raw(10), charToRaw("ghi")))
+
+ # Test raw(10) can be set to a single req field.
+ test$req <- raw(10)
+ checkEquals(length(test$req), 10)
+ checkTrue(all(blob$content == raw(10)))
}
Modified: pkg/man/clone.Rd
===================================================================
--- pkg/man/clone.Rd 2013-11-15 03:30:47 UTC (rev 542)
+++ pkg/man/clone.Rd 2013-12-14 23:19:49 UTC (rev 543)
@@ -3,7 +3,7 @@
\alias{clone}
\alias{clone-methods}
\alias{clone,Message-method}
-\title{Clone protocolo buffer messages}
+\title{Clone protocol buffer messages}
\description{
Generic "clone" function and associated
method for \linkS4class{Message} objects
More information about the Rprotobuf-commits
mailing list