Coder Social home page Coder Social logo

Ruby 2.3 specs about spec HOT 5 CLOSED

ruby avatar ruby commented on July 17, 2024
Ruby 2.3 specs

from spec.

Comments (5)

eregon avatar eregon commented on July 17, 2024 1

About Hacktoberfest: any PR with specs covering one of those points would greatly help Ruby implementations and help to specify Ruby's 2.3 behavior!
There are plenty of existing specs to take inspiration from.
Find me on #rubyspec on Freenode or just create an issue or PR to discuss.

from spec.

eregon avatar eregon commented on July 17, 2024 1

I would like to thank @headius, @mjago, @sgarciac and @iliabylich for the big help on these specs! 🎉
We would not make it without you!

from spec.

iliabylich avatar iliabylich commented on July 17, 2024

@eregon Working on adding specs for "squiggly heredoc" from opal/opal#1397. I guess all specs must be wrapped with eval, right? Is it possible to exclude the whole file from the test suite by specifying required ruby version? I just feel that wrapping all those heredocs with eval may look scary.

Or can we extract all examples to a separate file and required it in a context of ruby_version_is "2.3"?
In #318 require happens directly in the test. Does moving to an outer context break anything?

from spec.

eregon avatar eregon commented on July 17, 2024

@iliabylich Thanks!
Fixtures files is the best for this.

Or can we extract all examples to a separate file and required it in a context of ruby_version_is "2.3"?

Yes, it's OK to require within the version guard, I moved it since it was used in a single spec.

from spec.

eregon avatar eregon commented on July 17, 2024

All new features of 2.3 are now finally properly specified in ruby/spec!

We need a better way to deal with this, it's too time consuming.
Ideally, people implementing the features would also contribute a spec.
MRI tests are often not optimal due to testing many different aspects together, making it very likely to fail for reasons unrelated to the new feature on alternative Ruby implementations.

from spec.

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.