(t *testing.T)
| 137 | } |
| 138 | |
| 139 | func TestLoop_Iteration(t *testing.T) { |
| 140 | l := NewLoop("/path/to/prd.json", "test prompt", 5, testProvider) |
| 141 | |
| 142 | if l.Iteration() != 0 { |
| 143 | t.Errorf("Expected initial iteration to be 0, got %d", l.Iteration()) |
| 144 | } |
| 145 | |
| 146 | l.iteration = 3 |
| 147 | if l.Iteration() != 3 { |
| 148 | t.Errorf("Expected iteration to be 3, got %d", l.Iteration()) |
| 149 | } |
| 150 | } |
| 151 | |
| 152 | func TestLoop_Stop(t *testing.T) { |
| 153 | l := NewLoop("/path/to/prd.json", "test prompt", 5, testProvider) |