Lumiera  0.pre.03
»edit your freedom«
test-time.c File Reference

Go to the source code of this file.

Description

C unit test to cover the basic low-level time handling operations.

See also
time.h
timevalue.hpp
TimeValue_test high-level time entities

Definition in file test-time.c.

#include "lib/test/test.h"
#include "lib/time.h"
#include <ctype.h>
#include <nobug.h>

Functions

static int calculate_framecount (gavl_time_t t, uint fps)
 
 TEST (basic)
 
 TEST (fps)
 
 TEST (ntsc_drop_frame)
 

Variables

const int FPS = 24
 
TESTS_BEGIN const int FRAMES = 15
 
const int HOURS = 3
 
const int MILLIS = 700
 
const int MINUTES = 55
 
const int SECONDS = 20