From: Fletcher T. Penney Date: Sat, 11 Feb 2017 18:20:43 +0000 (-0500) Subject: FIXED: Fix scan_url test suite X-Git-Tag: 0.3.0a^2~25 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e6b7e0134ccee00eef1bce3f08f1307dfa27353;p=multimarkdown FIXED: Fix scan_url test suite --- diff --git a/src/scanners.c b/src/scanners.c index a798d1a..15ddd0c 100644 --- a/src/scanners.c +++ b/src/scanners.c @@ -1,4 +1,4 @@ -/* Generated by re2c 0.14.3 on Thu Feb 9 11:59:42 2017 */ +/* Generated by re2c 0.14.3 on Sat Feb 11 13:20:22 2017 */ /** MultiMarkdown 6 -- Lightweight markup processor to produce HTML, LaTeX, and more. @@ -9595,12 +9595,12 @@ void Test_scan_url(CuTest* tc) { url_len = (int) scan_url("http://test.com/"); CuAssertIntEquals(tc, 16, url_len); url_len = (int) scan_email("mailto:foo@bar.com"); - CuAssertIntEquals(tc, 0, url_len); + CuAssertIntEquals(tc, 18, url_len); url_len = (int) scan_url("foo@bar.com "); - CuAssertIntEquals(tc, 12, url_len); + CuAssertIntEquals(tc, 11, url_len); url_len = (int) scan_email("mailto:foo@bar.com"); - CuAssertIntEquals(tc, 12, url_len); + CuAssertIntEquals(tc, 18, url_len); } #endif diff --git a/src/scanners.re b/src/scanners.re index 0f53f2f..9f1394c 100644 --- a/src/scanners.re +++ b/src/scanners.re @@ -426,12 +426,12 @@ void Test_scan_url(CuTest* tc) { url_len = (int) scan_url("http://test.com/"); CuAssertIntEquals(tc, 16, url_len); url_len = (int) scan_email("mailto:foo@bar.com"); - CuAssertIntEquals(tc, 0, url_len); + CuAssertIntEquals(tc, 18, url_len); url_len = (int) scan_url("foo@bar.com "); - CuAssertIntEquals(tc, 12, url_len); + CuAssertIntEquals(tc, 11, url_len); url_len = (int) scan_email("mailto:foo@bar.com"); - CuAssertIntEquals(tc, 12, url_len); + CuAssertIntEquals(tc, 18, url_len); } #endif