Skip to content

Commit

Permalink
Merge pull request #62 from essentialkaos/develop
Browse files Browse the repository at this point in the history
Version 3.2.1
  • Loading branch information
andyone authored Aug 1, 2016
2 parents 48912fb + 605f0b8 commit ac532c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## Changelog

#### v3.2.1

* `[knf]` Fixed typo in tests
* `[strutil]` Removed unreachable code

#### v3.2.0

* `[strutil]` Added method `Len` which return number of symbols in string
Expand Down
4 changes: 2 additions & 2 deletions knf/knf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const _CONFIG_MALF_DATA = `

const (
_CONFIG_FILE_NAME = "knf-config-test.conf"
_CONFIG_EMTPY_FILE_NAME = "knf-config-test-empty.conf"
_CONFIG_EMPTY_FILE_NAME = "knf-config-test-empty.conf"
_CONFIG_MALFORMED_FILE_NAME = "knf-config-test-malf.conf"
)

Expand All @@ -108,7 +108,7 @@ func (s *KNFSuite) SetUpSuite(c *check.C) {
tmpdir := c.MkDir()

s.ConfigPath = tmpdir + "/" + _CONFIG_FILE_NAME
s.EmptyConfigPath = tmpdir + "/" + _CONFIG_EMTPY_FILE_NAME
s.EmptyConfigPath = tmpdir + "/" + _CONFIG_EMPTY_FILE_NAME
s.MalformedConfigPath = tmpdir + "/" + _CONFIG_MALFORMED_FILE_NAME

err := ioutil.WriteFile(s.ConfigPath, []byte(_CONFIG_DATA), 0644)
Expand Down
1 change: 0 additions & 1 deletion strutil/strutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ func Tail(s string, n int) string {
return s
}

return s[l-n:]
return Substr(s, l-n, 99999999999)
}

Expand Down

0 comments on commit ac532c9

Please sign in to comment.