Skip to content

Commit

Permalink
Merge pull request #9153 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 Oct 17, 2024
2 parents 3674d96 + 71ec510 commit 838b1c9
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_oct_16() {
fn it_is_the_morning_of_oct_17() {
let now = Local::now().with_timezone(&chrono_tz::America::Los_Angeles);
assert_eq!(now.month(), 10); // check if the current month is 3
assert_eq!(now.day(), 16); // check if the current day is 25
assert_eq!(now.day(), 17); // 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_oct_16() {
fn it_is_the_afternoon_of_oct_17() {
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 838b1c9

Please sign in to comment.