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

Unified Diff: service/datastore/properties_test.go

Issue 1550903002: impl/memory: Fix time serialization encoding. (Closed) Base URL: https://github.com/luci/gae@master
Patch Set: Deduplicate time/int conversion logic. Created 5 years 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
Index: service/datastore/properties_test.go
diff --git a/service/datastore/properties_test.go b/service/datastore/properties_test.go
index 2dc8851fd3f3e8156feeb4b34a18d3b2e10e881c..4e7a9bd6f764dfc9ecb6d2f225ae41323050df5a 100644
--- a/service/datastore/properties_test.go
+++ b/service/datastore/properties_test.go
@@ -124,6 +124,14 @@ func TestProperties(t *testing.T) {
So(pv.Type().String(), ShouldEqual, "PTBytes")
})
})
+
+ Convey("Comparison", func() {
+ Convey(`A []byte property should equal a string property with the same value.`, func() {
+ a := MkProperty([]byte("ohaithere"))
+ b := MkProperty("ohaithere")
+ So(a.Equal(&b), ShouldBeTrue)
+ })
+ })
})
}

Powered by Google App Engine
This is Rietveld 408576698