Skip to content

Commit e75723d

Browse files
committed
feat: remove wrong author email
1 parent b32f29b commit e75723d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

behavioral/interpreter/interpreter_test.go

+9-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ func TestPlusOperatorDetector(t *testing.T) {
3030
if i.contains("+") != true {
3131
t.Error("dovrebbe conoscere l'operatore +")
3232
}
33+
}
34+
35+
func TestShouldNotContainUnknownOperator(t *testing.T) {
36+
sentence := "2 + 3"
37+
i := interpreter{}
38+
i.of(sentence)
3339
if i.contains("unknown") != false {
34-
t.Error("non dovrebbe conoscere un operatore sconosciuto")
40+
t.Error("it should not known unknown operator")
3541
}
3642
}
3743

@@ -43,7 +49,7 @@ func TestSplitSentencesInSplice(t *testing.T) {
4349
for ind, _ := range expected {
4450
tok := i.tokens()
4551
if expected[ind] != tok[ind] {
46-
t.Error("non ci siamo")
52+
t.Error("invalid tokens")
4753
}
4854
}
4955
}
@@ -61,7 +67,7 @@ func TestCountNumberOfOperators(t *testing.T) {
6167
}
6268
}
6369

64-
func TestExec(t *testing.T) {
70+
func TestSumOperator(t *testing.T) {
6571
sentence := "5 + 3"
6672
i := interpreter{}
6773
i.of(sentence)

go.mod

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/sensorario/go-design-patterns
2+
3+
go 1.17

0 commit comments

Comments
 (0)