Commit 59171cb1 authored by Tom Barbalet's avatar Tom Barbalet

better math coverage

parent 129d22f0
Pipeline #121789846 passed with stages
in 53 minutes and 22 seconds
......@@ -146,7 +146,7 @@
{
if ([sender respondsToSelector:@selector(setState:)])
{
[sender setState:(value ? NSOnState : NSOffState)];
[sender setState:(value ? NSControlStateValueOn : NSControlStateValueOff)];
}
}
......
......@@ -120,6 +120,35 @@ void check_intersection(void)
printf("Intersections passed fine!\n");
}
n_byte test_line(n_int px, n_int py, n_int dx, n_int dy, void * information)
{
return 0;
}
void check_lines(void)
{
n_vect2 start = {24, 5420};
n_vect2 end = {24, 5420};
n_byte2 local[2] = {0xef5e, 0x4738};
n_join joiner;
joiner.information = 0L;
joiner.pixel_draw = &test_line;
(void)math_join_vect2(-25, 1000, &start, &joiner);
(void)math_line_vect(&start, &end, &joiner);
(void)math_line(0, 0, 650, 7000, &joiner);
(void)math_hash_fnv1("HASH right here");
(void)math_hash("HASH right here", 15);
(void)math_turn_towards(&start, 9 , 2);
(void)math_spread_byte(5);
(void)math_random3(local);
}
void check_math(void)
{
n_int loop = 0;
......
......@@ -295,7 +295,7 @@ typedef enum
OTHER_PATERNAL_GRANDFATHER,
RELATIONSHIPS
};
}RELATIONSHIP_TYPES;
typedef enum
{
......@@ -335,7 +335,7 @@ typedef enum
INTERVAL_MONTHS,
INTERVAL_YEARS,
INTERVALS
};
}TIME_INTERVALS;
static const n_int interval_steps[] =
{ 1, TIME_HOUR_MINUTES, TIME_DAY_MINUTES, TIME_MONTH_MINUTES, TIME_YEAR_MINUTES};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment