Added overloaded support for str * int
Some checks failed
Build / build (push) Successful in 10m36s
Test / build (push) Failing after 15m43s

This commit is contained in:
Chuck Smith
2024-03-23 10:03:31 -04:00
parent 16ca2acf49
commit 803d717379
4 changed files with 30 additions and 1 deletions

View File

@@ -10,7 +10,7 @@ import (
"testing"
)
func TestEvalIntegerExpression(t *testing.T) {
func TestEvalExpressions(t *testing.T) {
tests := []struct {
input string
expected interface{}
@@ -36,6 +36,8 @@ func TestEvalIntegerExpression(t *testing.T) {
{"1 | 2", 3},
{"2 ^ 4", 6},
{"3 & 6", 2},
{`" " * 4`, " "},
{`4 * " "`, " "},
}
for _, tt := range tests {