Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@iamyojimbo
Copy link

@iamyojimbo iamyojimbo commented Apr 8, 2024

It prints out the context when the values are different. I have made this very WET for now by simply pasting the body of assert_value/1 macro.

The next step would be to update the context inline.

It looks like this currently:

test/chatgpt/custom_gpt_test/order_blood_tests/prompt_test.exs:6:"test A" assert_value failed

= Context =
fn_to_get_context

     assert_value "39393eei99393" <> "-------------------------------" ==
-                   "39393ee99393-------------------------------"
+                   "39393eei99393-------------------------------"

Accept new value? [y,n,?]

PS: I have had to make strings on long lines because of #16.

@iamyojimbo iamyojimbo marked this pull request as draft April 8, 2024 20:05
It prints out when the values are different.

It looks like this currently:

```
test/chatgpt/custom_gpt_test/order_blood_tests/prompt_test.exs:6:"test A" assert_value failed

= Context =
fn_to_get_context

     assert_value "39393eei99393" <> "-------------------------------" ==
-                   "39393ee99393-------------------------------"
+                   "39393eei99393-------------------------------"

Accept new value? [y,n,?]
```
@iamyojimbo iamyojimbo force-pushed the feature/context branch 2 times, most recently from 62e4239 to 3962531 Compare April 9, 2024 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.