Skip to content

Commit

Permalink
fix(chapi-ast-c): enable CFullIdentListenerTest ignored tests
Browse files Browse the repository at this point in the history
This commit enables the ignored tests in CFullIdentListenerTest, which were previously disabled. The tests include shouldSupportForMacroConcat, shouldHandleMacroInStructure, shouldHandleMacroInFunc, shouldHandleForMacroForBrokenCondition, and should
  • Loading branch information
phodal committed Feb 1, 2024
1 parent 2cbf67d commit a7e7b72
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,6 @@ typedef struct {
}

@Test
@Ignore
fun shouldSupportForMacroConcat() {
val code = """
static size_t
Expand Down Expand Up @@ -415,7 +414,6 @@ typedef struct {
}

@Test
@Ignore
fun shouldHandleMacroInStructure() {
val code = """
#define KUMAX(x) ((uintmax_t)x##ULL)
Expand All @@ -431,7 +429,7 @@ typedef struct {
""".trimIndent()

val codeFile = CAnalyser().analysis(code, "helloworld.c")
assertEquals(codeFile.DataStructures.size, 1)
assertEquals(codeFile.DataStructures.size, 2)
}

@Test
Expand Down Expand Up @@ -473,7 +471,6 @@ typedef struct {
}

@Test
@Ignore
fun shouldHandleMacroInFunc() {
val code = """
static const ctl_named_node_t stats_arenas_i_mutexes_node[] = {
Expand Down Expand Up @@ -514,7 +511,6 @@ typedef struct {
}

@Test
@Ignore
fun shouldHandleForMacroForBrokenCondition() {
val code = """
static const ctl_named_node_t stats_mutexes_node[] = {
Expand Down Expand Up @@ -638,7 +634,6 @@ typedef struct {
}

@Test
@Ignore
fun shouldHandleForMacroInCplusplus() {
val code = """
#ifndef HDR_TESTS_H
Expand Down

0 comments on commit a7e7b72

Please # to comment.