WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
This repository was archived by the owner on Dec 10, 2025. It is now read-only.

Commit 23df6ea

Browse files
authored
Merge pull request #81 from dacharyc/add-prompts
Add a prompts directory for useful prompts
2 parents 1f8e850 + fc12c88 commit 23df6ea

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

prompts/comparison-util-debug.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Debug Failing Comparison Utility
2+
3+
## Context
4+
The current context is a <PROGRAMMING LANGUAGE> project designed to test the
5+
MongoDB <DRIVER> Driver code examples shown in the MongoDB documentation.
6+
7+
This project contains a utility that compares the actual output from running a
8+
code example against a defined, expected output. The entrypoint for that
9+
utility is <ENTRYPOINT_FILEPATH>.
10+
11+
## Problem Statement
12+
13+
A specific test is executing a function from an example file and comparing its
14+
output to the expected output defined in <EXPECTED_OUTPUT_PATH_OR_VAR>. The
15+
test currently fails because the utility returns `false`, indicating that the
16+
actual and expected outputs differ, but they should match. This suggests an
17+
issue in the comparison utility's implementation.
18+
19+
## Constraints
20+
21+
- Do not modify the example file or expected output.
22+
23+
## Task
24+
25+
- Investigate and debug why the comparison utility returns false for this case.
26+
- Fix any issues found in the comparison utility.
27+
- (Optional but recommended) If helpful, update or add tests for identified
28+
edge cases to ensure robustness and to prevent future regressions.
29+
30+
If you need more information (such as sample actual/expected outputs or error
31+
messages), let me know.
32+
33+
## Success Criteria
34+
35+
The comparison utility should return `true` when the actual and expected
36+
outputs match for this test.

0 commit comments

Comments
 (0)