Mentions légales du service

Skip to content
Snippets Groups Projects

Engine evolution

Closed PRATS Tommy requested to merge dev/tommy/test_auto into main
18 files
+ 344
33
Compare changes
  • Side-by-side
  • Inline
Files
18
+ 14
0
#include <criterion/criterion.h>
#include <criterion/internal/assert.h>
#include <criterion/internal/test.h>
#include "agdbentures.h"
Test(custom_entity, test_create) {
int the_void = 100;
entity * e = create_entity('#', MONSTER_C , &the_void);
cr_assert_eq(e->id , -1);
cr_assert_eq(e->category, MONSTER_C);
cr_assert_eq(e->stats, &the_void);
cr_assert_eq(e->display_symbol, '#');
}
Loading