Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rabbit 🐇 season #11094

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading