• 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
sbx Avatar
Name:Unknown
Clan:Unknown
Member Since:Aug 2016
Last Seen:Mar 2024
Profiles:
    Following:0
    Followers:0
    Allies:0
    View Profile Badges
    • Stats
    • Kata
    • Collections
    • Kumite
    • Social
    • Discourse
    • Conversations (10)
    • Replies
    • Authored
    • Needs Resolution
    • Custom User Avatar
      • Awesome A.D.
      • resolved a suggestion on "Two numbers are positive" kata
      • 2 years ago

      approved

    • Custom User Avatar
      • sbx
      • commented on ""Two numbers are positive" Rust Translation"
      • 2 years ago

      Fixed :)

    • Custom User Avatar
      • Awesome A.D.
      • commented on ""Two numbers are positive" Rust Translation"
      • 2 years ago
      • Please add todo!() to the solution setup so it compiles as-is
      • Since your custom assertion messages already contain all the necessary information, using assert_eq is redundantly noisy. You could switch it out for assert!(actual == expected, /* msg */) for more concise test output.
      • According to the docs using array.map is inefficient, especially if all you want is to unpack the resulting collection. You could alternatively do something like this:
      use itertools::Itertools;
      /* snip */
      // Ignore the panic, it will never trigger, but allows to refutably match on `Some`.
      let Some((a, b, c)) = (0..3).map(|_| rng.gen_range(-100..=100)).collect_tuple() else {panic!()}; 
      
      • In future translations, leave the comment at the top of Sample Tests (not submission tests) that explains to users how to add tests of their own in place, it's informative especially for beginner-level kata.

      Cheers

    • Custom User Avatar
      • ksouffle
      • commented on "Two numbers are positive" kata
      • 2 years ago

      You're supposed to check if there are exactly two positive numbers.

    • Custom User Avatar
      • JohanWiltink
      • commented on "Two numbers are positive" kata
      • 2 years ago

      Please read the description. It's one line; you should be able to do that.

      That test is correct.

    • Custom User Avatar
      • kachdi
      • commented on "Two numbers are positive" kata
      • 2 years ago

      "twoArePositive": Test case is buged returning:

      (4, 6, 10): expected true to equal false

      Clearly all numbers are positive but they expect false please correct the wrong test case.

    • Custom User Avatar
      • JohanWiltink
      • commented on "Two numbers are positive" kata
      • 2 years ago

      Please read the description.

    • Custom User Avatar
      • seriousGame
      • commented on "Two numbers are positive" kata
      • 2 years ago

      Why 4 6 10 == false?!

    • Custom User Avatar
      • sbx
      • created a suggestion for "Two numbers are positive" kata
      • 2 years ago

      Rust translation

    • Custom User Avatar
      • bestwebua
      • commented on "isEven? - Bitwise Series" ruby solution
      • 8 years ago

      This comment is hidden because it contains spoiler information about the solution

    • © 2025 Codewars
    • About
    • API
    • Blog
    • Privacy
    • Terms
    • Code of Conduct
    • Contact

    Confirm

    • Cancel
    • Confirm

    Collect: undefined

    Loading collection data...