• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
EricPC Avatar
Name:Eric Pereira
Clan:Uninter
Member Since:Mar 2022
Last Seen:Feb 2025
Profiles:
Following:4
Followers:4
Allies:4
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (24)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • EricPC
    • commented on "John's reading method" kata
    • 2 years ago

    Ok, does that sounds better?
    "John has a superstition, after finishing a daily reading, if the last page read that day is odd, he reads one more page. This does not interfere with the daily reading pattern."

  • Custom User Avatar
    • dfhwze
    • created an issue for "John's reading method" kata
    • 2 years ago

    "whenever the last page read in his daily reading is odd"

    • it is unclear whether to count the number of pages for that day only, or from start uptil that day
  • Custom User Avatar
    • akar-0
    • resolved an issue on "Checking the weight of a product" kata
    • 2 years ago

    Thanks for the effort.

  • Custom User Avatar
    • EricPC
    • resolved an issue on "Checking the weight of a product" kata
    • 2 years ago

    Now it's fine.

  • Custom User Avatar
    • EricPC
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    I improved code repetition, and now it displays a more descriptive message so that in random and basic tests it is possible to know the values being read.

  • Custom User Avatar
    • akar-0
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    The messages you have added are not helpful. It should give the inputs. Something like With expectedWeight = ..., weight = ..., etc..

    It's better to create a separated function to avoid repetition of code.

    Something like:

    function dotest(a,b,c,d,expected) {
        assert.equal(weightChecker(a, b, c, d), expected, "HELPFUL MESSAGE");
    }
    

    and then replace the tests with

        dotest(100, 101, 1, 1, true)
        etc.
    

    And you can use the same function in both fixed and random tests.

  • Custom User Avatar
    • EricPC
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    Sorry, I completely forgot about the basic tests, I had just modified the random ones, now it's ok for me.

  • Custom User Avatar
    • akar-0
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    I see no change in sample tests (and I cannot see the random ones since I have not solved the kata). I think you cannot republish your kata as long as it has at least two issues opened (I don't know exactly the process, but I know it returns to draft if a two issues are raised at one moment).

  • Custom User Avatar
    • EricPC
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    Ok, I added some error messages, and clicked save, I couldn't republish my kata again, am I doing it right?

  • Custom User Avatar
    • akar-0
    • created an issue for "Checking the weight of a product" kata
    • 2 years ago

    The issue below is not fixed. Please don't close issues until they have been fixed.

  • Custom User Avatar
    • EricPC
    • resolved an issue on "Checking the weight of a product" kata
    • 2 years ago

    Thank you for your support!

  • Custom User Avatar
    • akar-0
    • created an issue for "Checking the weight of a product" kata
    • 2 years ago

    expected false to equal true -> such logs are not helpful for the user since it gives him no idea of the values being tested. Please refer to the documentation to set on good log messages.

  • Custom User Avatar
    • EricPC
    • commented on "Checking the weight of a product" kata
    • 2 years ago

    Thanks, can you test again?

  • Custom User Avatar
    • Mednoob
    • created an issue for "Checking the weight of a product" kata
    • 2 years ago

    Random test should match user result with result from your reference solution and not just do type checking.

    https://www.codewars.com/kata/reviews/64ea278eb070c300014228da/groups/64ea2c455acbd500016c20f5

  • Custom User Avatar
    • adbiLenLa
    • commented on "Regexp Basics - is it IPv4 address?" python solution
    • 2 years ago

    wow

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...