aboutsummaryrefslogtreecommitdiff
path: root/lib/strings/row_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-03-14 22:37:59 +0700
committerShulhan <ms@kilabit.info>2021-03-14 22:40:05 +0700
commite7552ad0189f761875bc1c2ca3dd716d43a01e0d (patch)
treefd68ec29d23fb9a807a7382088020e3b17d446fd /lib/strings/row_test.go
parent882727d89c8e7f9b9761009ccdca1af8c18d0a30 (diff)
downloadpakakeh.go-e7552ad0189f761875bc1c2ca3dd716d43a01e0d.tar.xz
all: refactoring the test.Assert and test.AssertBench signature
Previously, the test.Assert and test.AssertBench functions has the boolean parameter to print the stack trace of test in case its not equal. Since this parameter is not mandatory and its usually always set to "true", we remove them from function signature to simplify the call to Assert and AssertBench.
Diffstat (limited to 'lib/strings/row_test.go')
-rw-r--r--lib/strings/row_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/strings/row_test.go b/lib/strings/row_test.go
index dc7c0519..b3ac097d 100644
--- a/lib/strings/row_test.go
+++ b/lib/strings/row_test.go
@@ -33,7 +33,7 @@ func TestRowIsEqual(t *testing.T) {
for _, c := range cases {
got := c.a.IsEqual(c.b)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}
@@ -61,6 +61,6 @@ func TestRowJoin(t *testing.T) {
for _, c := range cases {
got := c.row.Join(c.lsep, c.ssep)
- test.Assert(t, "", c.exp, got, true)
+ test.Assert(t, "", c.exp, got)
}
}