updated chemical test to use file now

This commit is contained in:
herbglitch 2025-03-08 02:43:16 -07:00
parent b2aec6be00
commit 0e83921632
3 changed files with 6 additions and 5 deletions

View file

@ -0,0 +1,3 @@
group test {
int32 test = 5;
}

View file

@ -10,12 +10,10 @@ ARC_TEST(Chemical_BasicTest){
ARC_CHECK(arc_errno == 0);
//char *tempCString = "int32 test = 5;";
char *tempCString = "group test { int32 test = 5; }";
//char *tempCString = "group test { }";
char *tempCString = "tests/res/std/chemical/first.chemical";
ARC_String *tempString;
ARC_String_CreateWithStrlen(&tempString, tempCString);
ARC_Chemical_LoadFromString(chemical, &tempString);
ARC_Chemical_LoadFromFile(chemical, tempString);
//cleanup
ARC_Chemical_Destroy(chemical);