(t *testing.T, s string, res string)
| 53 | } |
| 54 | |
| 55 | func testRemoveComments(t *testing.T, s string, res string) { |
| 56 | t.Helper() |
| 57 | myRes := RemoveComments(s) |
| 58 | t.Logf("%s: %s", s, myRes) |
| 59 | |
| 60 | if myRes != res { |
| 61 | t.Errorf("%s: %s, supposed to be %s", s, myRes, res) |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | func TestRemoveComments(t *testing.T) { |
| 66 | testRemoveComments(t, "r.act == p.act # comments", "r.act == p.act") |
no test coverage detected
searching dependent graphs…