Comments (3)
That looks pretty awesome to me.
I like the #fuzzy
, #repeated
etc methods, too.
What do you think about replacing anything
and nothing
with match.anything
and match.nothing
, so that only match
needs to be included into the RSpec/whatever namespace?
from json_expressions.
Haven't considered that one, I like the suggestion! In that case the signature of match would have to be def match(*args) ... end to properly distinguish between match(nil) vs match(), which presumably returns a DSLProxy object or something similar which lets you call anything/nothing etc on it.
I need to think a little but more about the drawbacks of returning proxy objects in general, eg how to report "dangling proxy objects" errors, etc. But I am pretty sure those could be worked out.
Thanks for the feedback!
—
Sent from Mailbox for iPhone
On Mon, Aug 5, 2013 at 12:50 PM, Paul Annesley [email protected]
wrote:
That looks pretty awesome to me.
I like the#fuzzy
,#repeated
etc methods, too.What do you think about replacing
anything
andnothing
withmatch.anything
andmatch.nothing
, so that onlymatch
needs to be included into the RSpec/whatever namespace?Reply to this email directly or view it on GitHub:
#18 (comment)
from json_expressions.
Is this happening?
from json_expressions.
Related Issues (20)
- matching floats to a given precision HOT 1
- Define JSON pattern outside of tests? HOT 2
- Cucumber support HOT 2
- Conflicts with 'rails/application' and 'rspec/rails' HOT 4
- How to use captures with Rspec? HOT 3
- Support for arbitrary custom matchers HOT 3
- Rspec 3 Deprecation Warning HOT 1
- Custom Matcher's HOT 1
- [feature]: Using awesome_print for prettier JSON output on failure HOT 1
- Would I be able to use rspec method 'match_json_expression' inside a cucumber step definitions? HOT 2
- how to set certain keys as optional?
- Nested schema matching HOT 1
- Symbolic Values Seem to be Skipped HOT 2
- Add support for unified Integer class HOT 2
- Tests fail for Ruby 2+ HOT 1
- Circular load warning HOT 1
- stack level too deep HOT 1
- add .can_be_empty! for Arrays and Hashes
- Release 1.0 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from json_expressions.