all tests fail #1

Open
opened 2026-07-05 21:11:31 +01:00 by apb · 1 comment
Owner

From corpus constructors.txt

<title>Harold and the Purple Crayon</title>

Expected:

(module 
 (main_module 
  (direct_element 
   (start_tag (identifier (identifier))) 
   (element_text (char_data)) 
   (end_tag (identifier (identifier))))))

Output:

(module [0, 0] - [0, 43]
  (main_module [0, 0] - [0, 43]
    (query_body [0, 0] - [0, 43]
      (rel_path_expr [0, 0] - [0, 43]
        (direct_constructor [0, 0] - [0, 43]
          (direct_element [0, 0] - [0, 43]
            (start_tag [0, 0] - [0, 7]
              ncname: (identifier [0, 1] - [0, 6]))
            content: (char_data [0, 7] - [0, 35])
            (end_tag [0, 35] - [0, 43]
              ncname: (identifier [0, 37] - [0, 42]))))))))
From corpus `constructors.txt` ``` <title>Harold and the Purple Crayon</title> ``` Expected: ``` (module (main_module (direct_element (start_tag (identifier (identifier))) (element_text (char_data)) (end_tag (identifier (identifier)))))) ``` Output: ``` (module [0, 0] - [0, 43] (main_module [0, 0] - [0, 43] (query_body [0, 0] - [0, 43] (rel_path_expr [0, 0] - [0, 43] (direct_constructor [0, 0] - [0, 43] (direct_element [0, 0] - [0, 43] (start_tag [0, 0] - [0, 7] ncname: (identifier [0, 1] - [0, 6])) content: (char_data [0, 7] - [0, 35]) (end_tag [0, 35] - [0, 43] ncname: (identifier [0, 37] - [0, 42])))))))) ```
Author
Owner
(query_body 
(rel_path_expr
(direct_constructor
ncname:
content -> element_text
ncname:
``` (query_body (rel_path_expr (direct_constructor ncname: content -> element_text ncname: ```
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
external/tree-sitter-xquery#1
No description provided.