Skip to content

Bad timezone test #43

@jamesjer

Description

@jamesjer

My timezone is currently Mountain Standard Time (UTC - 7). Running the test suite fails on a timezone test:

ASSERT gap g6 Local = gap g6 UTC + gap UTC Local
File "tests/test_timezone.ml", line 37, character 2:
FAIL gap g6 Local = gap g6 UTC + gap UTC Local

   Expected: `11'
   Received: `-13'

(gap g6 Local) is -13, which make_in_bounds converts to 11. But (gap g6 UTC) is -6 and (gap UTC Local) is -7, so their sum is indeed -13. The test should do the equivalent of calling make_in_bounds on the result of the addition.

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