diff options
author | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-19 14:11:32 -0600 |
---|---|---|
committer | Ben Johnson <benbjohnson@yahoo.com> | 2014-05-19 14:11:32 -0600 |
commit | 12b36fe70c3dee7f8ae9a1e2b68f76e1d9c4cd71 (patch) | |
tree | 604e58d3f0b1a6a72b9989822dcb8ff1a4c97b9e /db_test.go | |
parent | Fix freelist allocation direction. (diff) | |
download | dedo-12b36fe70c3dee7f8ae9a1e2b68f76e1d9c4cd71.tar.gz dedo-12b36fe70c3dee7f8ae9a1e2b68f76e1d9c4cd71.tar.xz |
Fix freelist allocate().
Diffstat (limited to 'db_test.go')
-rw-r--r-- | db_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -319,10 +319,10 @@ func TestDB_Consistency(t *testing.T) { assert.Equal(t, "free", p.Type) } if p, _ := tx.Page(4); assert.NotNil(t, p) { - assert.Equal(t, "freelist", p.Type) + assert.Equal(t, "leaf", p.Type) // root leaf } if p, _ := tx.Page(5); assert.NotNil(t, p) { - assert.Equal(t, "leaf", p.Type) // root leaf + assert.Equal(t, "freelist", p.Type) } p, _ := tx.Page(6) assert.Nil(t, p) |