Coder Social home page Coder Social logo

Comments (11)

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

FWIW - in order to check in files with "\r\n" to Git without Git trying to convert them - see http://github.com/aslakhellesoy/cucumber/blob/master/.gitattributes

from gherkin2.

ghnatiuk avatar ghnatiuk commented on September 26, 2024

Thanks! Had no idea github would do that. Will save me us troubleshooting time for sure.

from gherkin2.

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

Not Github - Git :-)

from gherkin2.

ghnatiuk avatar ghnatiuk commented on September 26, 2024

Oh. Hah. yes, that.

from gherkin2.

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

I saw you did some changes Greg, but it's still failing for me. Extra \r at end of line in the spec you added. Still WIP?

from gherkin2.

ghnatiuk avatar ghnatiuk commented on September 26, 2024

Yeah, still WIP unfortunately. the C lexer is having problems with \r in pystrings, though it looks to be passing in Java and Ruby. I haven't integrated the C# stuff yet to test with that.

from gherkin2.

ghnatiuk avatar ghnatiuk commented on September 26, 2024

Well, actually, I need to clarify the behavior a bit before I can say whether the ruby/java tests pass.

If a pystring contains \r\ns, should they be preserved as such within the py_string message?

from gherkin2.

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

I believe they should be preserved as is, yes. (Likewise, I think the pretty printer in gherkin should use whatever line ending the source had when printing stuff back, but this is not a lexer issue - apart from perhaps detecting the most likely line ending for a particular file - sometimes they are mixed)

from gherkin2.

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

Ruby and Java are now splitting and joining multiline strings with the most frequent eol.

The C and C# parser must catch up before we close this ticket.

from gherkin2.

ghnatiuk avatar ghnatiuk commented on September 26, 2024

I've got this working in C, though I'm going to clean it up a bit before pushing.

Should be pretty easy at this point to pass the result of the frequency count on to the listener. What do you think the signature of that should be? A separate message before sending feature...an optional 4th argument to .feature (e.g. crlf=false)?

The specs pass in C, but the feature comparing pretty-output of the cucumber DOS features fails (because of newline differences). For some reason, when running that scenario under jruby, the output is not seen as different even though the line endings are not the same.

from gherkin2.

aslakhellesoy avatar aslakhellesoy commented on September 26, 2024

So only C# is left. That will be exposed when #45 is adressed, so I'm closing this for now. If C# needs a special CRLF ticket later we'll create a separate ticket.

from gherkin2.

Related Issues (20)

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.