(t *testing.T, s string, res []string)
| 151 | } |
| 152 | |
| 153 | func testGetEvalValue(t *testing.T, s string, res []string) { |
| 154 | t.Helper() |
| 155 | myRes := GetEvalValue(s) |
| 156 | |
| 157 | if !ArrayEquals(myRes, res) { |
| 158 | t.Errorf("%s: %s supposed to be %s", s, myRes, res) |
| 159 | } |
| 160 | } |
| 161 | |
| 162 | func TestGetEvalValue(t *testing.T) { |
| 163 | testGetEvalValue(t, "eval(a) && a && b && c", []string{"a"}) |
no test coverage detected
searching dependent graphs…