Skip to content

Commit

Permalink
restore the integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst committed May 15, 2024
1 parent 58a8358 commit c1a9120
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 327 deletions.
11 changes: 6 additions & 5 deletions tests/integration/mock/CodeActAgent/test_edits/prompt_002.log
Original file line number Diff line number Diff line change
Expand Up @@ -228,18 +228,19 @@ ENVIRONMENT REMINDER: You have 98 turns left to complete the task.

----------

Let's start by opening the file `bad.txt` to identify and fix the typos. Let me open the file for you:
Certainly! I will start by opening the file `bad.txt` to see the content and then proceed to fix the typos.

<execute_bash>
open bad.txt
</execute_bash>

----------

OBSERVATION:
[File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typoo.
2:Really?
3:No mor typos!
[File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typoo.
2:Really?
3:No mor typos!
4:Enjoy!
[Command -1 finished with exit code 0]]

Expand Down
35 changes: 22 additions & 13 deletions tests/integration/mock/CodeActAgent/test_edits/prompt_003.log
Original file line number Diff line number Diff line change
Expand Up @@ -228,42 +228,51 @@ ENVIRONMENT REMINDER: You have 98 turns left to complete the task.

----------

Let's start by opening the file `bad.txt` to identify and fix the typos. Let me open the file for you:
Certainly! I will start by opening the file `bad.txt` to see the content and then proceed to fix the typos.

<execute_bash>
open bad.txt
</execute_bash>

----------

OBSERVATION:
[File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typoo.
2:Really?
3:No mor typos!
[File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typoo.
2:Really?
3:No mor typos!
4:Enjoy!
[Command -1 finished with exit code 0]]

ENVIRONMENT REMINDER: You have 97 turns left to complete the task.

----------

I will now correct the typos in the file `bad.txt`. Let me edit the file to fix the typos:
I will now edit the file to correct the typos.

<execute_bash>
edit 1:3
edit 1:1
This is a stupid typo.
Really?
end_of_edit
edit 3:3
No more typos!
end_of_edit
</execute_bash>

----------

OBSERVATION:
> > > > [File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typo.
2:Really?
3:No more typos!
4:Enjoy!
> > [File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typo.
2:Really?
3:No mor typos!
4:Enjoy!
File updated. Please review the changes and make sure they are correct (correct indentation, no duplicate lines, etc). Edit the file again if necessary.
> > [File: /workspace/bad.txt (4 lines total)]
1:This is a stupid typo.
2:Really?
3:No more typos!
4:Enjoy!
File updated. Please review the changes and make sure they are correct (correct indentation, no duplicate lines, etc). Edit the file again if necessary.
[Command -1 finished with exit code 0]]

Expand Down
285 changes: 0 additions & 285 deletions tests/integration/mock/CodeActAgent/test_edits/prompt_004.log

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Let's start by opening the file `bad.txt` to identify and fix the typos. Let me open the file for you:
Certainly! I will start by opening the file `bad.txt` to see the content and then proceed to fix the typos.

<execute_bash>
open bad.txt

Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
I will now correct the typos in the file `bad.txt`. Let me edit the file to fix the typos:
I will now edit the file to correct the typos.

<execute_bash>
edit 1:3
edit 1:1
This is a stupid typo.
Really?
end_of_edit
edit 3:3
No more typos!
end_of_edit

0 comments on commit c1a9120

Please sign in to comment.