From 6dc8e832a7abc2e8fa8260684ce1203f9ea079f0 Mon Sep 17 00:00:00 2001 From: Vitaly Puzrin Date: Thu, 23 Oct 2014 12:44:41 +0400 Subject: [PATCH] Updated smartquotes tests --- test/fixtures/remarkable/smartquotes.txt | 16 +++++++++++++++- test/fixtures/remarkable/typographer.txt | 6 ------ 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/test/fixtures/remarkable/smartquotes.txt b/test/fixtures/remarkable/smartquotes.txt index b3c7c77..f3c247f 100644 --- a/test/fixtures/remarkable/smartquotes.txt +++ b/test/fixtures/remarkable/smartquotes.txt @@ -1,4 +1,3 @@ - Should parse nested quotes: . @@ -13,6 +12,7 @@ Should parse nested quotes:

‘foo ‘bar’ baz’

. + Should not overlap quotes: . @@ -21,6 +21,7 @@ Should not overlap quotes:

‘foo "bar’ baz"

. + Should match quotes on the same level: . @@ -29,6 +30,7 @@ Should match quotes on the same level:

“foo bar baz”

. + Should not match quotes on different levels: . @@ -46,6 +48,7 @@ Should not match quotes on different levels:

"foo bar baz"

. + Should try and find matching quote in this case: . @@ -54,6 +57,16 @@ Should try and find matching quote in this case:

"foo “bar 'baz”

. + +Should not touch 'inches' in quotes: + +. +"Monitor 21"" +. +

“Monitor 21"”

+. + + Should render an apostrophe as a rsquo: . @@ -62,6 +75,7 @@ This isn't and can't be the best approach to implement this...

This isn’t and can’t be the best approach to implement this…

. + Apostrophe could end the word, that's why original smartypants replaces all of them as rsquo: . diff --git a/test/fixtures/remarkable/typographer.txt b/test/fixtures/remarkable/typographer.txt index e49381d..dfd13ab 100644 --- a/test/fixtures/remarkable/typographer.txt +++ b/test/fixtures/remarkable/typographer.txt @@ -75,9 +75,3 @@ remarkable--awesome

remarkable–awesome

. - - - -TODO: - -- "Monitor 21"" \ No newline at end of file