summaryrefslogtreecommitdiffstats
path: root/src/chunklist_test.go
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-01-09 02:37:08 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-01-09 10:42:12 +0900
commitaa05bf5206768965e575b6032543745c830e6eea (patch)
tree46689067f45992915ea6549266825556743b489a /src/chunklist_test.go
parentd303c5b3ebc6d56af6d3a03c6b4cdb361a2b022c (diff)
Reduce memory footprint
Diffstat (limited to 'src/chunklist_test.go')
-rw-r--r--src/chunklist_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/chunklist_test.go b/src/chunklist_test.go
index b244ece8..09e4aadd 100644
--- a/src/chunklist_test.go
+++ b/src/chunklist_test.go
@@ -7,7 +7,7 @@ import (
func TestChunkList(t *testing.T) {
cl := NewChunkList(func(s *string, i int) *Item {
- return &Item{text: s, index: i * 2}
+ return &Item{text: s, rank: Rank{0, 0, uint32(i * 2)}}
})
// Snapshot
@@ -36,8 +36,8 @@ func TestChunkList(t *testing.T) {
if len(*chunk1) != 2 {
t.Error("Snapshot should contain only two items")
}
- if *(*chunk1)[0].text != "hello" || (*chunk1)[0].index != 0 ||
- *(*chunk1)[1].text != "world" || (*chunk1)[1].index != 2 {
+ if *(*chunk1)[0].text != "hello" || (*chunk1)[0].rank.index != 0 ||
+ *(*chunk1)[1].text != "world" || (*chunk1)[1].rank.index != 2 {
t.Error("Invalid data")
}
if chunk1.IsFull() {