Skip to content

Commit

Permalink
rules for fixing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
terryyin committed Feb 7, 2025
1 parent 3e63b53 commit 93d4c3b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .cursor/rules/issue.mdc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
description: Guideline for fixing issues
globs:
---

# When fixing an issue (e.g. from Github issues) please:

1. find where is the right place to add a new unit test to reproduce the issue
2. add a new unit test
3. run all test to see if the test really fails
4. fix the issue until all test pass
5. clean up
6. run all unit test at last to confirm things are still working.

follow [basic-development.mdc](mdc:.cursor/rules/basic-development.mdc)

2 changes: 1 addition & 1 deletion .cursor/rules/lizard-rule.mdc
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ Reference existing implementations:
## Testing Your Implementation

```bash
make test # Run all tests
python -m pytest # Run all tests
python -m pytest test/test_languages/testMyLang.py # Test specific language
```

Expand Down

0 comments on commit 93d4c3b

Please sign in to comment.