Skip to content

Some examples in date_time_parser are failing #5

@binduwavell

Description

@binduwavell

The explicit tests are working. However, tests over the examples are failing in a few places... For example:

use chrono::NaiveDate;
use date_time_parser::{DateParser, Recognizable};

let date = DateParser::parse("July 4 2020");

assert_eq!(date, Some(NaiveDate::from_ymd(2020, 7, 4)))

Here is a sample test failure related to that example:

---- src/lib.rs - (line 23) stdout ----
Test executable failed (exit code 101).

stderr:
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `Some(2021-06-05)`,
 right: `Some(2020-06-05)`', src/lib.rs:8:1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions