Checking in vendor folder for ease of using go get.
This commit is contained in:
parent
7a1251853b
commit
cdb4b5a1d0
3554 changed files with 1270116 additions and 0 deletions
29
vendor/github.com/pelletier/go-toml/position_test.go
generated
vendored
Normal file
29
vendor/github.com/pelletier/go-toml/position_test.go
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
// Testing support for go-toml
|
||||
|
||||
package toml
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestPositionString(t *testing.T) {
|
||||
p := Position{123, 456}
|
||||
expected := "(123, 456)"
|
||||
value := p.String()
|
||||
|
||||
if value != expected {
|
||||
t.Errorf("Expected %v, got %v instead", expected, value)
|
||||
}
|
||||
}
|
||||
|
||||
func TestInvalid(t *testing.T) {
|
||||
for i, v := range []Position{
|
||||
{0, 1234},
|
||||
{1234, 0},
|
||||
{0, 0},
|
||||
} {
|
||||
if !v.Invalid() {
|
||||
t.Errorf("Position at %v is valid: %v", i, v)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue