-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add readData proc that accepts a string. #9613
Conversation
One important question. I haven't found any existing tests for Should I create a test module for |
tests should almost always be in same PR as functionality change
this may change thanks to #9581 ; just make sure the test doesn't use |
Please add a test. Otherwise I approve this PR. |
I'm having trouble writing and running the test. Even when my new test passes,
I've put |
Also, it passes even with wrong assertions (see the last one):
|
OK I've found a way to run a single test file, but the test runner is clearly acting weird. Test:
Run:
|
Give it a spec section. |
First, thanks for accepting the PR. Second, I've added the test for the new function: #9645 |
There are two variants of
decodeData
: one that takes a set of methods and one that takes a string. There is however only one variant ofreadDate
, the one that take a set of methods and calls the correspondingdecodeData
variant.I'm currently making a Slack app and need a way to extract a value from a query string. Having a
readData
proc I could feed a string to and get a table from would be really nice. So I'm adding it with this PR.