Cleaned up some comments

This commit is contained in:
Saxon Milton 2017-12-05 20:22:34 +10:30
parent 508dc6536a
commit e1e38bcafc
1 changed files with 5 additions and 5 deletions

View File

@ -43,7 +43,7 @@ const (
testConcurrencyBufferSize = 1000
)
// Consts to define types of actions, assertions and test ends
// Types of actions, assertions and test ends
const (
testWrite = 0
testDoneWriting = 1
@ -54,13 +54,14 @@ const (
assertError = 6
)
// Strings to help with error messages
// Strings to help with test fail messages
const (
noErrorFailMessage = "Should have got error!"
falseErrorFailMessage = "Should not have got error: %v"
atMessage = " Series: %v Action: %v"
atMessage = " Series: %v"
)
// Pointer to the ringbuffer we will be testing
var rb *ringBuffer
// Call when the a test array has the wrong format
@ -105,8 +106,7 @@ var tests = [][]int{
testDoneWriting, testRead, testRead, testEnd},
}
// Tests series of actions performed by the ring buffer defined in array
// tests
// Tests series of actions performed by the ring buffer defined in array tests
func TestAllSorts(t *testing.T) {
for i := range tests {
rb = NewRingBuffer(tests[i][0], testElementSize)