mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-05-15 11:02:36 +02:00
Merge pull request #1191 from wangsheng/patch-1
Modify the test case of DEBUG_REFLECTION_EXAMPLE
This commit is contained in:
commit
00f32cbb69
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ def add(a: int, b: int) -> int:
|
|||
user:
|
||||
Tests failed:
|
||||
assert add(1, 2) == 3 # output: -1
|
||||
assert add(1, 2) == 4 # output: -1
|
||||
assert add(1, 3) == 4 # output: -2
|
||||
|
||||
[reflection on previous impl]:
|
||||
The implementation failed the test cases where the input integers are 1 and 2. The issue arises because the code does not add the two integers together, but instead subtracts the second integer from the first. To fix this issue, we should change the operator from `-` to `+` in the return statement. This will ensure that the function returns the correct output for the given input.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue