@@ -1,6 +1,9 @@
|
||||
package calories
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestCalcCalories(t *testing.T) {
|
||||
t.Parallel()
|
||||
@@ -31,7 +34,7 @@ func TestCalcCalories(t *testing.T) {
|
||||
{
|
||||
"чай text",
|
||||
"чай",
|
||||
39,
|
||||
79,
|
||||
false,
|
||||
},
|
||||
}
|
||||
@@ -46,6 +49,7 @@ func TestCalcCalories(t *testing.T) {
|
||||
return
|
||||
}
|
||||
if count != tt.want {
|
||||
fmt.Println(count, tt.want)
|
||||
t.Errorf("error count: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user