Skip to content

Commit

Permalink
add scaffold to lib.cairo
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jul 2, 2024
1 parent fc2a572 commit 5894919
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion exercises/practice/roman-numerals/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
use core::fmt::{Display, Error, Formatter};

#[derive(Drop)]
struct Roman {}
pub struct Roman {}

impl U32IntoRoman of Into<u32, Roman> {
#[must_use]
fn into(self: u32) -> Roman {
panic!()
}
}

impl RomanDisplay of Display<Roman> {
fn fmt(self: @Roman, ref f: Formatter) -> Result<(), Error> {
panic!()
}
}

#[cfg(test)]
mod tests;

0 comments on commit 5894919

Please sign in to comment.