Skip to content

Commit

Permalink
code: updated tests for new radius support
Browse files Browse the repository at this point in the history
  • Loading branch information
inlife committed May 8, 2021
1 parent 99150ee commit 06ca629
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 160 deletions.
12 changes: 0 additions & 12 deletions code/tests/cases/entity.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,6 @@ MODULE(entity, {
librg_world_destroy(world);
});

IT("should be able to properly set a radius", {
librg_world *world = librg_world_create();
librg_entity_track(world, 15);

r = librg_entity_radius_set(world, 15, 15); EQUALS(r, LIBRG_OK);
r = librg_entity_radius_get(world, 15); EQUALS(r, 15);

librg_entity_untrack(world, 15);
librg_world_destroy(world);
});

IT("should be able to properly set a dimension", {
librg_world *world = librg_world_create();
librg_entity_track(world, 15);
Expand Down Expand Up @@ -114,7 +103,6 @@ MODULE(entity, {
r = librg_entity_userdata_set(world, 15, (void *)15); NEQUALS(r, LIBRG_OK);
r = librg_entity_chunk_set(world, 15, 15); NEQUALS(r, LIBRG_OK);
r = librg_entity_owner_set(world, 15, 15); NEQUALS(r, LIBRG_OK);
r = librg_entity_radius_set(world, 15, 15); NEQUALS(r, LIBRG_OK);
r = librg_entity_dimension_set(world, 15, 15); NEQUALS(r, LIBRG_OK);

librg_world_destroy(world);
Expand Down
Loading

0 comments on commit 06ca629

Please sign in to comment.