-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
test "add" works, but the other two tests don't.
fn add(a: anytype, b: anytype) @TypeOf(a, b) {
return a + b;
}
test "add" {
try std.testing.expectEqual(3, add(1, 2));
}
test add {
try std.testing.expectEqual(3, add(1, 2));
}
test {
try std.testing.expectEqual(3, add(1, 2));
}We can get test add working just by changing this line:
@@ -61,7 +61,7 @@ function M.discover_positions(path)
local query = [[
;;query
(TestDecl
- (STRINGLITERALSINGLE) @test.name
+ [(IDENTIFIER) (STRINGLITERALSINGLE)] @test.name
) @test.definition
]]
log.debug("Running query", query)I couldn't figure out a way to capture unnamed tests, but that's mainly because I'm unfamiliar with the system, I'm sure its doable.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request