Skip to content

Commit

Permalink
add missing test cfg in leap
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenad committed Jun 19, 2024
1 parent fc842dc commit 2058a58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/verify-exercises
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ verify_exercise() {
# https://github.com/exercism/docs/blob/main/anatomy/tracks/concept-exercises.md#file-exemplar-implementation
# verify_exercise "concept" "exemplar"
# https://github.com/exercism/docs/blob/main/anatomy/tracks/practice-exercises.md#file-example-implementation
verify_exercise "practice" "example"
verify_exercise "practice" "example"
8 changes: 6 additions & 2 deletions exercises/practice/hello-world/.meta/example.cairo
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
fn hello() -> ByteArray {
"Hello, World!"
fn hello() -> felt252 {
'Hello, World!'
}

#[cfg(test)]
mod tests;

3 changes: 3 additions & 0 deletions exercises/practice/leap/.meta/example.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ fn is_leap_year(year: u64) -> bool {
fn has_factor(year: u64, factor: u64) -> bool {
year % factor == 0
}

#[cfg(test)]
mod tests;

0 comments on commit 2058a58

Please sign in to comment.