Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Show transformed answer after submitting input #450

Merged
merged 2 commits into from Sep 21, 2022

Conversation

twelvelabs
Copy link
Contributor

Fixes #449.

I tried to use the existing go-expect tooling to test this, but had a hard time figuring out how to do so 馃槵. No amount of fiddling w/ Console (or the Expect* methods) seemed to be able to get at the output written by Prompt.Confirm(). If there's a better way to do this, please let me know and I'll update.

@twelvelabs
Copy link
Contributor Author

/cc @AlecAivazis @mislav 馃憖

Copy link
Collaborator

@mislav mislav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

I've pushed some changes to simplify. Let me know what you think

@twelvelabs
Copy link
Contributor Author

Ah, it seems I misunderstood the failure message when I originally tried using ExpectString(). That was what I was going for - thanks!

LGTM 馃憤

@mislav mislav merged commit a98a037 into AlecAivazis:master Sep 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transformed answer not displayed after submitting input
2 participants