Skip to content

Commit ee397b9

Browse files
committed
fix: fix the broken tests
1 parent 3403c89 commit ee397b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

khata_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ func TestKhataExplain(t *testing.T) {
4040
return
4141
}
4242

43-
if k.Explanations()[0].FunctionName() != "github.com/cmseguin/khata_test.subFnExplain" {
43+
if k.Explanations()[0].FunctionName != "github.com/cmseguin/khata_test.subFnExplain" {
4444
t.Error("Explain() did not set the function name")
4545
return
4646
}
4747

48-
if k.Explanations()[0].Message() != "This is an explanation for subFnExplain" {
48+
if k.Explanations()[0].Message != "This is an explanation for subFnExplain" {
4949
t.Error("Explain() did not set the explanation message")
5050
return
5151
}
@@ -60,13 +60,13 @@ func TestKhataExplainf(t *testing.T) {
6060
t.Error("Explainf() did not set the explanation")
6161
return
6262
}
63-
println(k.Explanations()[0].FunctionName())
64-
if k.Explanations()[0].FunctionName() != "github.com/cmseguin/khata_test.TestKhataExplainf" {
63+
println(k.Explanations()[0].FunctionName)
64+
if k.Explanations()[0].FunctionName != "github.com/cmseguin/khata_test.TestKhataExplainf" {
6565
t.Error("Explainf() did not set the function name")
6666
return
6767
}
6868

69-
if k.Explanations()[0].Message() != "This is an explanation" {
69+
if k.Explanations()[0].Message != "This is an explanation" {
7070
t.Error("Explainf() did not set the explanation message")
7171
return
7272
}
@@ -258,7 +258,7 @@ func TestKhataErrorChaining(t *testing.T) {
258258
return
259259
}
260260

261-
if k.Explanations()[0].Message() != "This is an explanation" {
261+
if k.Explanations()[0].Message != "This is an explanation" {
262262
t.Error("Explain() did not set the explanation message")
263263
return
264264
}

0 commit comments

Comments
 (0)