Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

package gstr_test

import (
    "github.com/gogf/gf/test/gtest"
    "github.com/gogf/gf/text/gstr"
    "testing"
)

func Test_Trim(t *testing.T) {
    gtest.C(t, func(t *gtest.T) {
        t.Assert(gstr.Trim(" 123456\n "),      "123456")
        t.Assert(gstr.Trim("#123456#;", "#;"), "123456")
    })
}

...