Skip to content

[Test][Lab Chef Needed] Test HandTrait's compare_hands #48

@Birdmannn

Description

@Birdmannn

Overview

Write Your tests in the tests/hand_test.cairo file. Import the HandTrait from wherever it may be, there 🌚

Furthermore?

  • Your code must be statically typed for better readability please 🙏🏻
  • Implement this test in models/hand.cairo
  • Please ensure a hand works perfectly. Seems you just rank it yourself before asserting if the function equals your rank. Test for kickers too. 🌚
  • Document your code please, in a professional manner. Please avoid using too many small comments as you should know, only comment on hard to understand logic, and maybe some explanations on how and why it works
  • When done, @ your username in a comment on top of the function you touched. If there's one there already, append with a comma and a space. (// @ExistingUsername, @YourUsername, etc)... It's cooler to leave your signature behind, yes? 😋
  • Each // should be accompanied by a space, before typing, lock in.
  • Please avoid code repitition. For tests, there may be lines of codes that would be reused, please extract them into a separate function. Lock in your good PR quality please 🙏🏻
  • You have an eta of 3 days max. May the force be with you ☪️✋🏻
  • Ofcourse, if you have any questions (Which I bet you'd have, one billion per cent), you can branch here or here. Happy Hacks 😊💙

Help?

If you want it, you can have it. Find it! I left everything this world has to offer there -- Pirate Gol D. Roger

Metadata

Metadata

Assignees

No one assigned

    Labels

    cairoA cairo smart contract operationdifficulty: mediumenhancementNew feature or requesthelp wantedExtra attention is neededonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions