diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-12 14:57:27 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-13 10:58:27 -0700 |
commit | 8ad59edd02a8ea6001f15cd6d92944ae83c88f6d (patch) | |
tree | 3597cf9a764ba9e99779477a70f7bb71848d1a4c /page_test.go | |
parent | Mmap remap. (diff) | |
download | dedo-8ad59edd02a8ea6001f15cd6d92944ae83c88f6d.tar.gz dedo-8ad59edd02a8ea6001f15cd6d92944ae83c88f6d.tar.xz |
API Documentation.
Diffstat (limited to 'page_test.go')
-rw-r--r-- | page_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/page_test.go b/page_test.go index 05b0509..976af0d 100644 --- a/page_test.go +++ b/page_test.go @@ -7,11 +7,11 @@ import ( // Ensure that the page type can be returned in human readable format. func TestPageTyp(t *testing.T) { - assert.Equal(t, (&page{flags: p_branch}).typ(), "branch") - assert.Equal(t, (&page{flags: p_leaf}).typ(), "leaf") - assert.Equal(t, (&page{flags: p_meta}).typ(), "meta") - assert.Equal(t, (&page{flags: p_buckets}).typ(), "buckets") - assert.Equal(t, (&page{flags: p_freelist}).typ(), "freelist") + assert.Equal(t, (&page{flags: branchPageFlag}).typ(), "branch") + assert.Equal(t, (&page{flags: leafPageFlag}).typ(), "leaf") + assert.Equal(t, (&page{flags: metaPageFlag}).typ(), "meta") + assert.Equal(t, (&page{flags: bucketsPageFlag}).typ(), "buckets") + assert.Equal(t, (&page{flags: freelistPageFlag}).typ(), "freelist") assert.Equal(t, (&page{flags: 20000}).typ(), "unknown<4e20>") } |