Update README.md
Browse files
README.md
CHANGED
@@ -49,27 +49,18 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
49 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
|
50 |
|
51 |
prompt = f"""<|system|>
|
52 |
-
Generate unit tests for C/C++ code following these guidelines:
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
Test minimum/maximum values and invalid inputs
|
59 |
-
|
60 |
-
Verify error handling and exception cases
|
61 |
|
62 |
Output Requirements:
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
Include necessary assertions
|
69 |
-
|
70 |
-
End naturally after last test case
|
71 |
-
|
72 |
-
Never include framework boilerplate or headers
|
73 |
|
74 |
<|user|>
|
75 |
Create unit tests for:
|
|
|
49 |
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
|
50 |
|
51 |
prompt = f"""<|system|>
|
52 |
+
1.Generate unit tests for C/C++ code following these guidelines:
|
53 |
+
2.Cover all edge cases, boundary conditions, and error scenarios
|
54 |
+
3.Include both positive and negative test cases
|
55 |
+
4.Test minimum/maximum values and invalid inputs
|
56 |
+
5.Verify error handling and exception cases
|
|
|
|
|
|
|
|
|
57 |
|
58 |
Output Requirements:
|
59 |
+
-ONLY include test implementation code
|
60 |
+
-Start directly with test logic
|
61 |
+
-Include necessary assertions
|
62 |
+
-End naturally after last test case
|
63 |
+
-Never include framework boilerplate or headers
|
|
|
|
|
|
|
|
|
|
|
64 |
|
65 |
<|user|>
|
66 |
Create unit tests for:
|