@@ -34,7 +34,13 @@ func TestCalcCalories(t *testing.T) {
|
||||
{
|
||||
"чай text",
|
||||
"чай",
|
||||
79,
|
||||
130,
|
||||
false,
|
||||
},
|
||||
{
|
||||
"чай 250 text",
|
||||
"чай 250",
|
||||
162,
|
||||
false,
|
||||
},
|
||||
}
|
||||
@@ -49,6 +55,7 @@ func TestCalcCalories(t *testing.T) {
|
||||
return
|
||||
}
|
||||
if count != tt.want {
|
||||
fmt.Println(count, tt.want)
|
||||
fmt.Println(count, tt.want)
|
||||
t.Errorf("error count: %v", err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user