Skip to content
Snippets Groups Projects
Commit 5eb80788 authored by Timur Safin's avatar Timur Safin Committed by Igor Munkin
Browse files

test: make interval.test tap-compatible

NO_DOC=internal
NO_CHANGELOG=internal
parent c44520f0
No related branches found
No related tags found
No related merge requests found
#include <stdio.h>
#include <assert.h>
#include "unit.h"
#include "string.h"
#include "datetime.h"
#include "mp_interval.h"
#define UNIT_TAP_COMPATIBLE 1
#include "unit.h"
enum {
SIZE = 512,
};
......
1..21
ok 1 - Size of interval is 3
ok 2 - Size of interval is 6
ok 3 - Size of interval is 9
ok 4 - Size of interval is 12
ok 5 - Size of interval is 18
ok 6 - Size of interval is 24
ok 7 - Intervals are equal.
ok 8 - Intervals are equal.
ok 9 - Intervals are equal.
ok 10 - Intervals are equal.
ok 11 - Intervals are equal.
ok 12 - Intervals are equal.
ok 13 - Year value is right
ok 14 - Month value is right
ok 15 - Week value is right
ok 16 - Day value is right
ok 17 - Hour value is right
ok 18 - Minute value is right
ok 19 - Second value is right
ok 20 - Nanosecond value is right
ok 21 - Adjust value is right
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment