From 15a8ada2d2ac9d359555eee21b37541856ad7d8d Mon Sep 17 00:00:00 2001 From: Dexter Chua Date: Mon, 4 Jan 2021 19:52:43 +0800 Subject: [PATCH] Minimal test for regex (#1038) This is useful for testing the build system becaues regex is a fairly small package that uses C. --- packages/regex/test_regex.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 packages/regex/test_regex.py diff --git a/packages/regex/test_regex.py b/packages/regex/test_regex.py new file mode 100644 index 000000000..c21110bb7 --- /dev/null +++ b/packages/regex/test_regex.py @@ -0,0 +1,3 @@ +def test_regex(selenium, request): + selenium.load_package("regex") + assert selenium.run("import regex\nregex.search('o', 'foo').end()") == 2