Skip to content

Encoder tests expect submillisecond precision #155

@cyyynthia

Description

@cyyynthia

I have a bunch of tests fail for my toml encoder due to tests expecting my encoder to output time with submillisecond precision.

FAIL valid/spec/local-date-time-0
     Values for key "ldt2" differ:
       Expected:     1979-05-27 00:32:00.999999 +0200 datetime-local (time.Time)
       Your encoder: 1979-05-27 00:32:00.999 +0200 datetime-local (time.Time)

FAIL valid/spec/local-time-0
     Values for key "lt2" differ:
       Expected:     0000-01-01 00:32:00.999999 +0200 time-local (time.Time)
       Your encoder: 0000-01-01 00:32:00.999 +0200 time-local (time.Time)

FAIL valid/spec/offset-date-time-0
     Values for key "odt3" differ:
       Expected:     1979-05-27 00:32:00.999999 -0700 -0700 (time.Time)
       Your encoder: 1979-05-27 00:32:00.999 -0700 -0700 (time.Time)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions