Skip to content

POC: Add context to assert_value #17

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

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