aboutsummaryrefslogtreecommitdiff
path: root/chunk_test.go
blob: 4ea6b44fa724c5643da4c053f0e800e5976c2fc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package main

import "testing"

func TestIsStored(t *testing.T) {
	stored := Chunk{Id: &ChunkId{0, 0}}
	if !stored.isStored() {
		t.Error("Chunk ", stored, " should be stored")
	}
	unstored := Chunk{}
	if unstored.isStored() {
		t.Error("Chunk ", unstored, " should not be stored")
	}
}