Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: service/datastore/serialize/invertible_test.go

Issue 1302813003: impl/memory: Implement Queries (Closed) Base URL: https://github.com/luci/gae.git@add_multi_iterator
Patch Set: stringSet everywhere Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « service/datastore/serialize/invertible.go ('k') | service/datastore/serialize/serialize.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: service/datastore/serialize/invertible_test.go
diff --git a/service/datastore/serialize/invertible_test.go b/service/datastore/serialize/invertible_test.go
index caec46fb6b88740c045a9727b97b62d73bbe2217..89eda106c49eff44afb00cd6126597cfc0a77ac7 100644
--- a/service/datastore/serialize/invertible_test.go
+++ b/service/datastore/serialize/invertible_test.go
@@ -47,7 +47,7 @@ func TestInvertible(t *testing.T) {
})
})
Convey("inverted writing", func() {
- inv.Invert()
+ inv.SetInvert(true)
Convey("Write", func() {
n, err := inv.Write([]byte("hello"))
So(err, ShouldBeNil)
@@ -77,10 +77,10 @@ func TestInvertible(t *testing.T) {
})
})
Convey("Toggleable", func() {
- inv.Invert()
+ inv.SetInvert(true)
n, err := inv.Write([]byte("hello"))
So(err, ShouldBeNil)
- inv.Invert()
+ inv.SetInvert(false)
n, err = inv.Write([]byte("hello"))
So(n, ShouldEqual, 5)
So(inv.String(), ShouldEqual, "\x97\x9a\x93\x93\x90hello")
« no previous file with comments | « service/datastore/serialize/invertible.go ('k') | service/datastore/serialize/serialize.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698