@@ -17,7 +17,7 @@ func TestNodesCantBeNormalString(t *testing.T) {
17
17
func TestFoo (t * testing.T ) {
18
18
sentence := "do something"
19
19
i := interpreter {}
20
- _ = i .of (sentence )
20
+ i .of (sentence )
21
21
if i .numberOfWords () != 2 {
22
22
t .Error ("Guarda che ti stai sbagliando" )
23
23
}
@@ -26,7 +26,7 @@ func TestFoo(t *testing.T) {
26
26
func TestPlusOperatorDetector (t * testing.T ) {
27
27
sentence := "2 + 3"
28
28
i := interpreter {}
29
- _ = i .of (sentence )
29
+ i .of (sentence )
30
30
if i .contains ("+" ) != true {
31
31
t .Error ("dovrebbe conoscere l'operatore +" )
32
32
}
@@ -38,7 +38,7 @@ func TestPlusOperatorDetector(t *testing.T) {
38
38
func TestSplitSentencesInSplice (t * testing.T ) {
39
39
sentence := "2 + 3"
40
40
i := interpreter {}
41
- _ = i .of (sentence )
41
+ i .of (sentence )
42
42
expected := []string {"2" , "+" , "3" }
43
43
for ind , _ := range expected {
44
44
tok := i .tokens ()
@@ -51,7 +51,7 @@ func TestSplitSentencesInSplice(t *testing.T) {
51
51
func TestCountNumberOfOperators (t * testing.T ) {
52
52
sentence := "2 + 3"
53
53
i := interpreter {}
54
- _ = i .of (sentence )
54
+ i .of (sentence )
55
55
expected := []string {"2" , "+" , "3" }
56
56
for ind , _ := range expected {
57
57
tok := i .tokens ()
@@ -64,7 +64,7 @@ func TestCountNumberOfOperators(t *testing.T) {
64
64
func TestExec (t * testing.T ) {
65
65
sentence := "5 + 3"
66
66
i := interpreter {}
67
- _ = i .of (sentence )
67
+ i .of (sentence )
68
68
if i .exec () != 8 {
69
69
t .Error ([]string {
70
70
"La somma di 5 con 3" ,
@@ -77,7 +77,7 @@ func TestExec(t *testing.T) {
77
77
func TestMulOperator (t * testing.T ) {
78
78
sentence := "5 * 3"
79
79
i := interpreter {}
80
- _ = i .of (sentence )
80
+ i .of (sentence )
81
81
if i .exec () != 15 {
82
82
t .Error ([]string {
83
83
"Multiplication between 5 and 3" ,
0 commit comments