diff --git a/src/std/chemical.c b/src/std/chemical.c index 5561c62..141c50e 100644 --- a/src/std/chemical.c +++ b/src/std/chemical.c @@ -373,7 +373,7 @@ void ARC_Chemical_Create(ARC_Chemical **chemical){ /* ~ define the language as a string ~ */ char *languageCString = - " -> | | LAMBDA\n" + " -> | | \n" " -> OPEN_CURLY_BRACE CLOSE_CURLY_BRACE\n" " -> \n" diff --git a/tests/res/std/chemical/first.chemical b/tests/res/std/chemical/first.chemical new file mode 100644 index 0000000..93e9209 --- /dev/null +++ b/tests/res/std/chemical/first.chemical @@ -0,0 +1,3 @@ +group test { + int32 test = 5; +} diff --git a/tests/std/chemical.c b/tests/std/chemical.c index 228574f..079b43d 100644 --- a/tests/std/chemical.c +++ b/tests/std/chemical.c @@ -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);