Code Monkey home page Code Monkey logo

core-types's Introduction

Core Types

Starting with String Exercises

If you've never used Git you can follow these instructions from your terminal:

$ cd your_project_folder
$ git clone https://github.com/turingschool/ruby-exercises.git
$ cd ruby-exercises/core-types
$ gem install bundler
$ bundle

Then you can run the String exercises like this:

$ ruby string_test.rb

The object of this exercise is to make the tests pass.

This will only show you one failure at a time, and it will tell you how many passing assertions you have. Read the error message carefully to figure out which line of the test suite is failing.

This will run the test file and you will get some error. Read the error and make the changes to the string_test.rb file that you need to. Save the file, and then re-run it. You can hit the up arrow on your keyboard to have the terminal bring up the last command you ran.

Specifically, after you've replaced the maybes with assert or refute in the test_empty test in string_test.rb, it's just predicting what the tests want, and then replacing the underscores with what you think is required, and running the test file over again, until you've done so for each of the tests in the file, and they all pass.

Feel free to change the content of the tests after you have made them all pass in order to get a better understanding of how things work, and definitely open up pry and play in there to help you understand how these things work.

core-types's People

Contributors

mimizotti avatar

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.