Add a test for tabs in manual
This commit is contained in:
parent
719a93d431
commit
ea469c1ed4
|
|
@ -18,6 +18,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
@ -143,3 +144,9 @@ func TestEnvDuration(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func TestManualHasNoTabs(t *testing.T) {
|
||||||
|
if strings.Contains(manual, "\t") {
|
||||||
|
t.Fatal("the manual text contains a tab")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue