natalie-lang / natalie

a work-in-progress Ruby compiler, written in Ruby and C++
https://natalie-lang.org
MIT License
942 stars 63 forks source link

Implement methods of String #217

Open seven1m opened 3 years ago

seven1m commented 3 years ago

Our main approach is to work on one spec from ruby/spec at a time, implementing as much of the spec as possible, then check it off the list:

Note: there is another issue for String#unpack here: #667

ryangjchandler commented 2 years ago

Both String#lstrip and String#rstrip are spec-compliant!

ryangjchandler commented 2 years ago

String#size is also spec-compliant (minus the encoding tests).

ryangjchandler commented 2 years ago

String#center is spec-compliant since #518 too :)