(t *testing.T)
| 60 | } |
| 61 | |
| 62 | func Test_FindMultipleTests(t *testing.T) { |
| 63 | s := Suite{TestCases: []runtime.TestCase{ |
| 64 | {Title: "exists"}, |
| 65 | {Title: "another"}, |
| 66 | {Title: "another one"}, |
| 67 | }} |
| 68 | |
| 69 | test, _ := s.FindTests("another") |
| 70 | assert.Len(t, test, 2) |
| 71 | |
| 72 | test, _ = s.FindTests("another$") |
| 73 | assert.Len(t, test, 1) |
| 74 | } |