Skip to content

Commit

Permalink
Merge pull request #11094 from trunk-io/eli/season
Browse files Browse the repository at this point in the history
Rabbit 🐇 season
  • Loading branch information
github-actions[bot] authored Dec 2, 2024
2 parents 4b08760 + ec917d2 commit 93bffef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion javascript/src/season.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const Animal = {

class Season {
getCurrent() {
return Animal.Duck;
return Animal.Rabbit;
}
}

Expand Down
6 changes: 3 additions & 3 deletions rust/tests/new_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ mod tests {
use chrono::{Datelike, Local, Timelike};

#[test]
fn it_is_the_morning_of_dec_1() {
fn it_is_the_morning_of_dec_2() {
let now = Local::now().with_timezone(&chrono_tz::America::Los_Angeles);
assert_eq!(now.month(), 12); // check if the current month is 3
assert_eq!(now.day(), 1); // check if the current day is 25
assert_eq!(now.day(), 2); // check if the current day is 25
assert!(now.time().hour() < 12); // Check if the time is before noon
}

#[test]
fn it_is_the_afternoon_of_dec_1() {
fn it_is_the_afternoon_of_dec_2() {
let now = Local::now().with_timezone(&chrono_tz::America::Los_Angeles);
assert_eq!(now.month(), 3); // check if the current month is 3
assert_eq!(now.day(), 25); // check if the current day is 25
Expand Down

0 comments on commit 93bffef

Please sign in to comment.