-
-
Save artemnikitin/94622709699a4f30bf5bcc36078974ed to your computer and use it in GitHub Desktop.
Test example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func TestReaderBlaBlaBla1(t *testing.T) { | |
descriptor := &TestMemoryDescriptor{Array: bytes} //input | |
result := Read(descriptor, 1, 1, false) | |
assert.Equal(t, 5, result, | |
"Result expected: %v, actual: %v, for test data: %v", v.expected, result, v) | |
} | |
func TestReaderBlaBlaBla2(t *testing.T) { | |
descriptor := &TestMemoryDescriptor{Array: bytes} //input | |
result := Read(descriptor, 1, 2, false) | |
assert.Equal(t, 3, result, | |
"Result expected: %v, actual: %v, for test data: %v", v.expected, result, v) | |
} | |
func TestReaderBlaBlaBla3(t *testing.T) { | |
descriptor := &TestMemoryDescriptor{Array: bytes} //input | |
result := Read(descriptor, 2, 2, true) | |
assert.Equal(t, 12, result, | |
"Result expected: %v, actual: %v, for test data: %v", v.expected, result, v) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment