goadb/util_test.go
Zach Klippenstein 4b9891533a Started host and local service clients.
Milestone: the demo app prints /proc/loadavg from the device.
2015-04-12 22:07:12 -07:00

28 lines
509 B
Go

package goadb
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestContainsWhitespaceYes(t *testing.T) {
assert.True(t, containsWhitespace("hello world"))
}
func TestContainsWhitespaceNo(t *testing.T) {
assert.False(t, containsWhitespace("hello"))
}
func TestIsBlankWhenEmpty(t *testing.T) {
assert.True(t, isBlank(""))
}
func TestIsBlankWhenJustWhitespace(t *testing.T) {
assert.True(t, isBlank(" \t"))
}
func TestIsBlankNo(t *testing.T) {
assert.False(t, isBlank(" h "))
}