Code Monkey home page Code Monkey logo

Comments (5)

kreeger avatar kreeger commented on June 11, 2024

I loved VCR when writing Ruby tests, and I've stumbled upon this project. I'd love to help out if I can. I've used an ordered dictionary implementation or two before — by ordered dictionary, do you mean replacing this ivar here?

https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRCassette_Private.h#L28

#import "VCRCassette.h"

@interface VCRCassette ()

@property (nonatomic, retain) NSMutableDictionary *responseDictionary;

@end

from vcrurlconnection.

dstnbrkr avatar dstnbrkr commented on June 11, 2024

Hi @kreeger, that would be great! This is the dictionary that should probably be ordered:

https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRRecording.m#L87

if that dictionary was ordered, then the keys in the generated JSON would appear in consistent order. The dictionary here:

https://github.com/dstnbrkr/VCRURLConnection/blob/master/VCRURLConnection/VCRCassette_Private.h#L28

is just the url / response map, which doesn't need ordering.

from vcrurlconnection.

kreeger avatar kreeger commented on June 11, 2024

Question — I'm writing a test case to cover this new functionality (both'll be included in my PR), but there are three tests that fail on master before I even apply my changes, on both the OS X and iOS test targets. Should I worry about those? Fix those?

from vcrurlconnection.

kreeger avatar kreeger commented on June 11, 2024

I've added my own passing test for the JSON key ordering bit — opening a pull request now.

from vcrurlconnection.

dstnbrkr avatar dstnbrkr commented on June 11, 2024

I see what you mean re: those tests, should be fixed in master now. Thanks!

from vcrurlconnection.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.