func TestSize(t *testing.T) { setup() testFile := file.File{testFileName} if got := testFile.Size(); got != 0 { t.Errorf("Expected empty file to be 0 bytes, got %v", got) } // Add 4 bytes writestuff() if got := testFile.Size(); got != 4 { t.Errorf("Expected file with 'Asdf' to be 4 bytes, got %v", got) } teardown() }