Skip to content

Commit

Permalink
structs1: Struct description
Browse files Browse the repository at this point in the history
  • Loading branch information
shramee committed Feb 19, 2023
1 parent 39c2949 commit 4fd2fab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exercises/structs/structs1.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
#[derive(Copy, Drop)]
struct ColorStruct {
// TODO: Something goes here
// TODO: Your struct needs to have red, green, blue felts
}


#[test]
fn classic_c_structs() {
// TODO: Instantiate a classic color struct!
// Green color neeeds to have green set to 255 and, red and blue, set to 0
// let green =

assert(green.red == 0, 0);
Expand Down

0 comments on commit 4fd2fab

Please sign in to comment.