GithubHelp home page GithubHelp logo

"Bob" problem - missing test case about nim HOT 2 CLOSED

exercism avatar exercism commented on June 16, 2024
"Bob" problem - missing test case

from nim.

Comments (2)

amscotti avatar amscotti commented on June 16, 2024

@kaushalmodi Thanks for reporting this, you are right! From the test at https://github.com/exercism/nim/blob/master/exercises/bob/bob_test.nim#L31 this should be returning "Calm down, I know what I'm doing!" based on the canonical data at https://github.com/exercism/problem-specifications/blob/master/exercises/bob/canonical-data.json#L70

I'll take a look at fixing this today.

from nim.

kaushalmodi avatar kaushalmodi commented on June 16, 2024

Yeah.. earlier I had isQuestion check at a higher precedence, but then did this just to make the test pass

    if isShouting:
      return "Whoa, chill out!"
    elif isQuestion:
      if isShouting:  # this if condition will never be reached!
        return "Calm down, I know what I'm doing!"

http://exercism.io/submissions/eb9e4ee5de61487f8756edade426ba72

from nim.

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.