Skip to content
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

Create Tests Front-end #5

Open
jpbro opened this issue May 30, 2017 · 6 comments
Open

Create Tests Front-end #5

jpbro opened this issue May 30, 2017 · 6 comments
Assignees

Comments

@jpbro
Copy link
Owner

jpbro commented May 30, 2017

This is mostly a note to self - I'd like to create a front-end UI with a bunch of tests that can be run and possibly compared to VBScript Regex results - ideally we'd have a single method that can take either a VBScript Regex object or a CPcre object and run the exactly same regex matches/substitutions and compare the results, alerting the user of any differences.

@jpbro jpbro self-assigned this May 30, 2017
@jpbro
Copy link
Owner Author

jpbro commented May 30, 2017

Started work on this in last commit. There are currently 2 RichTextBox "panes" - one on the left, one on the right.

The left-hand pane shows results from a test as carried out by VbPcre2. The right-hand pane shows results from a test as carried out by VBScript Regexp.

Once both tests are complete, a MsgBox will appear to tell you whether or not the results are identical.

@jpbro jpbro closed this as completed May 30, 2017
@dragokas
Copy link

dragokas commented May 30, 2017

Looks nice.
But, I think, it will be useful to append your form with a manual testing (also, devided on 2 result windows):
like online regexp forms: you can enter there your own string, regexp press "Run" and see a result (and compare differences, if there are any).
... Do not forget to provide msgbox (or red line) if something wrong (error handling) = bad regexp or any.

@jpbro jpbro reopened this Jun 1, 2017
@jpbro
Copy link
Owner Author

jpbro commented Jun 1, 2017

Sorry, must have accidentally closed this - reopened now. Good idea re: support for manual/user-defined regex testing @dragokas. I will add this as soon as possible.

@dragokas
Copy link

dragokas commented Sep 6, 2017

If you prefer, I could add a face for your wrapper the same as mine: VbPcre2
(after I have enough time to do this)

@jpbro
Copy link
Owner Author

jpbro commented Sep 6, 2017

Your interface looks great, and it definitely makes sense to reuse it here if that works for you!

I think we should wait until I move all the PCRE classes out into their own ActiveX DLL project though. Then there will be a separation of UI and PCRE/regex code (making it easier for people who just want the regex stuff and not the UI to grab what they need)

@dragokas
Copy link

dragokas commented Sep 6, 2017

Good idea.
And simultaneously, graphic interface will be a good example how to call methods via ActiveX object of your dll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants