diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-13 10:59:47 -0700 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-02-13 10:59:47 -0700 |
commit | 34005ecd76f65c18920e686e3bfdb9ad5e5754a2 (patch) | |
tree | 3597cf9a764ba9e99779477a70f7bb71848d1a4c /page_test.go | |
parent | Merge pull request #24 from benbjohnson/remap (diff) | |
parent | API Documentation. (diff) | |
download | dedo-34005ecd76f65c18920e686e3bfdb9ad5e5754a2.tar.gz dedo-34005ecd76f65c18920e686e3bfdb9ad5e5754a2.tar.xz |
Merge pull request #29 from benbjohnson/cleanup
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>") } |