Skip to content

Commit a593227

Browse files
committed
test: ensure match code blocks in README
1 parent 5443c96 commit a593227

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

prql-compiler/tests/docs/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ fn website_hero_example() -> String {
5252
fn test_readme_examples() {
5353
let contents = fs::read_to_string("../README.md").unwrap();
5454
let re = Regex::new(r"(?s)```(elm|prql)\n(?P<prql>.+?)\n```").unwrap();
55+
assert_ne!(re.find_iter(&contents).count(), 0);
5556
for cap in re.captures_iter(&contents) {
5657
let prql = &cap["prql"];
5758
compile(prql).unwrap();

0 commit comments

Comments
 (0)