Coder Social home page Coder Social logo

ruby-on-rails-2014q1's Introduction

ruby-on-rails-2014q1's People

Contributors

auraelius avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-on-rails-2014q1's Issues

Another bug in spec file.

There is a duplicate test in the name_parser_spec.rb file.

The rule states:

it "should parse prefixes and last names and suffixes" do
return_array = Parse.parse_names(prefixes, suffixes, "Lady Madona III")
expect (return_array).to eq(["Lady","","","Madona","III"])
end

This is a duplicate rule and might cause a conflict in your tests if the rule is ran twice.

CC03: there's a test that conflicts with the rules of the spec

code_challenge_03/txt2csv/spec/name_parser_spec.rb

The rule below states:

If there is a middle name or a last name, there will be a first name. (For "M. Jackson", "M." is the first name.) There is always a last name (For "Miss Jane," "Jane" is a last name)

However there's a test that appears to conflict with the rule?

it "should parse prefixes and last names" do

return_array = Parse.parse_names(prefixes, suffixes, "Lady Madona")
expect(return_array).to eq(["Lady","","","Madona",""])

end

which is correct?

Thanks
Jin

CC03: There's a couple of bugs on the tests

code_challenge_03/txt2csv/spec/name_parser_spec.rb

Last test: it "should parse the whole banana" do

The passed string is missing the first name that the test is looking for: "Mary"

it "should parse the whole banana" do
return_array = Parse.parse_names(prefixes, suffixes, "Lady Samuel Madona-Richey III")
expect(return_array).to eq(["Lady","Mary","Samuel","Madona-Richey","III"])
end

week1 HW, no contact list

There is no contact list on google docs owned by either Shawna or Chris. Chris said he will make a new one in an email I got CCd in.

This was listed in the "Connect up to the community" area.

CC03: there's a test that conflicts with the rules of the spec

code_challenge_03/txt2csv/spec/name_parser_spec.rb

The rule below states:
If there is a middle name or a last name, there will be a first name. (For "M. Jackson", "M." is the first name.)

* There is always a last name (For "Miss Jane," "Jane" is a last name)

However there's a test that appears to conflict with the rule?

it "should parse prefixes and last names" do

return_array = Parse.parse_names(prefixes, suffixes, "Lady Madona")
expect(return_array).to eq(["Lady","","","Madona",""])

end

which is correct?

Thanks
Jin

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.