22 lines
573 B
C
22 lines
573 B
C
#include "../test.h"
|
|
#include "arc/std/errno.h"
|
|
#include "arc/std/chemical.h"
|
|
//#include <stdlib.h>
|
|
|
|
|
|
ARC_TEST(Chemical_BasicTest){
|
|
ARC_Chemical *chemical;
|
|
ARC_Chemical_Create(&chemical);
|
|
|
|
ARC_CHECK(arc_errno == 0);
|
|
|
|
//char *tempCString = "int32 test = 5;";
|
|
char *tempCString = "group test { int32 test = 5; }";
|
|
//char *tempCString = "group test { }";
|
|
ARC_String *tempString;
|
|
ARC_String_CreateWithStrlen(&tempString, tempCString);
|
|
ARC_Chemical_LoadFromString(chemical, &tempString);
|
|
|
|
//cleanup
|
|
ARC_Chemical_Destroy(chemical);
|
|
}
|