// Copyright 2018 Fredrik Portström // This is free software distributed under the terms specified in // the file LICENSE at the top-level directory of this distribution. pub const TEST_CASES: &[(&str, &[&str])] = &[ ( "basic", &[ "", "\t", "\t\n", "\t alpha", "\talpha", "\n", "\n\t", "\n\n\nalpha", "\n\nalpha", "\n\nalpha\n\n", "\n \nalpha", "\nalpha", "\nalpha\n", " ", " \n\nalpha", " \nalpha", " ", "alpha", "alpha\t", "alpha\n", "alpha\n\t", "alpha\n\n", "alpha\n\n\n", "alpha\n\n ", "alpha\n ", "alpha\n \n", "alpha\nbeta", "alpha ", "alpha \n", ], ), ( "bold italic", &[ "'", "''", "'''", "''''", "'''''", "''''''", "'''''''", "''''''''", "'''alpha", "'''alpha''", "'''alpha'''", "''alpha", "''alpha''", "''alpha'''", "alpha''", "alpha'''", "alpha'''beta", "alpha'''beta'''gamma", "alpha'''beta''gamma", "alpha''beta", "alpha''beta'''gamma", "alpha''beta''gamma", ], ), ( "character entity", &[ "≪", "Ö", "<", "<ö", "<", "< alpha", "<ö", "<alpha", "ö", "alpha <", "alpha < beta", "alpha<", "alpha<beta", ], ), ( "comment", &[ "", "beta", "beta", "-->beta", "", " beta", "", "beta", "beta", "alpha ", "{{", "{{alpha}}", "}}", ], ), ( "paragraph break", &[ "alpha\t\n\nbeta", "alpha\n\t\nbeta", "alpha\n\n\t beta", "alpha\n\n\tbeta", "alpha\n\n\n\nbeta", "alpha\n\n\nbeta", "alpha\n\nbeta", "alpha\n \nbeta", "alpha \n\nbeta", ], ), ( "parameter", &[ "{{{", "{{{\talpha}}}", "{{{\nalpha}}}", "{{{''}}}", "{{{alpha\t|beta}}}", "{{{alpha\t}}}", "{{{alpha\n|beta}}}", "{{{alpha\n}}}", "{{{alpha |beta}}}", "{{{alpha }}}", "{{{alpha|", "{{{alpha|\tbeta}}}", "{{{alpha|\t|}}}", "{{{alpha|\t}}}", "{{{alpha|\nbeta}}}", "{{{alpha|\n|}}}", "{{{alpha|\n}}}", "{{{alpha| beta|}}}", "{{{alpha| |}}}", "{{{alpha| }}}", "{{{alpha|beta\t|}}}", "{{{alpha|beta\n|}}}", "{{{alpha|beta |}}}", "{{{alpha|beta|", "{{{alpha|beta|\n}}}", "{{{alpha|beta|gamma}}}", "{{{alpha|beta|}}}", "{{{alpha|beta}}}", "{{{alpha|}}}", "{{{alpha}}}", "{{{|''}}}", "{{{||}}}", "{{{|}}}", "{{{}}}", "}}}", ], ), ( "preformatted block", &[ " alpha", " alpha", " alpha\n\n\nbeta", " alpha\n\nbeta", " alpha\n beta", " alpha\n beta\n gamma", " alpha\n beta\ngamma", " alpha\nbeta", " alpha\nbeta\n gamma", "alpha\t\n beta", "alpha\n\n beta", "alpha\n \n beta", "alpha\n =beta=\ngamma", "alpha\n beta", "alpha\n beta\n gamma", "alpha\n beta\ngamma", "alpha \n beta", ], ), ( "redirect", &[ "\t#REDIRECT[[alpha]]", "\n\n#REDIRECT[[alpha]]", "\n #REDIRECT[[alpha]]", "\n#REDIRECT [[alpha]]", " \n#REDIRECT[[alpha]]", " #REDIRECT[[alpha]]", " #REDIRECT[[alpha]]", "#REDIRECT\t:[[alpha]]", "#REDIRECT\t[[alpha]]", "#REDIRECT\n\n[[alpha]]", "#REDIRECT\n [[alpha]]", "#REDIRECT\n:\n[[alpha]]", "#REDIRECT\n:[[alpha]]", "#REDIRECT\n[[alpha]]", "#REDIRECT \n[[alpha]]", "#REDIRECT [[alpha]]", "#REDIRECT : [[alpha]]", "#REDIRECT :[[alpha]]", "#REDIRECT [[alpha]]", "#REDIRECT:\t[[alpha]]", "#REDIRECT:\n[[alpha]]", "#REDIRECT: [[alpha]]", "#REDIRECT:[[alpha]]", "#REDIRECT[[alpha]]", "#REDIRECT[[alpha]]\n\nbeta", "#REDIRECT[[alpha]]\n beta", "#REDIRECT[[alpha]]\nbeta", "#REDIRECT[[alpha]] \nbeta", "#REDIRECT[[alpha]] beta", "#REDIRECT[[alpha]] beta", "#REDIRECT[[alpha]]''beta", "#REDIRECT[[alpha]]beta", "#REDIRECT[[alpha|]]", "#REDIRECT[[alpha|]]beta", "#REDIRECT[[alpha|beta\ngamma]]", "#REDIRECT[[alpha|beta]]", "#REDIRECT[[alpha|beta]]=gamma=", "#REDIRECT[[alpha|beta]]gamma", "#ReDiReCt[[alpha]]", "#rEdIrEcT[[alpha]]", "#redirect[[alpha]]", ], ), ( "table", &[ " {|\n |}", " {|\n|}", "alpha\n{|\nbeta\n|}", "{|", "{|\n |}", "{|\n!\n alpha\n|}", "{|\n!\n!\n|}", "{|\n!\nalpha\n\nbeta\n|}", "{|\n!\nalpha\n\n|}", "{|\n!\nalpha\nbeta\n|}", "{|\n!\nalpha \n|}", "{|\n!\n|\n|}", "{|\n!\n|-\n|}", "{|\n!\n|}", "{|\n! alpha\n|}", "{|\n!!\n|}", "{|\n!!!\n|}", "{|\n!!!!\n|}", "{|\n!!!|\n|}", "{|\n!alpha\n\nbeta\n|}", "{|\n!alpha\nbeta\n|}", "{|\n!alpha\nbeta|gamma\n|}", "{|\n!alpha\n|}", "{|\n!alpha!!beta\n|}", "{|\n!alpha!beta\n|}", "{|\n!alpha|beta\n|}", "{|\n!alpha||beta\n|}", "{|\n!|\n|}", "{|\n!|!!\n|}", "{|\n!|alpha\n|}", "{|\n!|alpha|beta\n|}", "{|\n!||\n|}", "{|\n!||alpha\n|}", "{|\n!|||\n|}", "{|\n*alpha\n|}", "{|\n=alpha=\n|}", "{|\nalpha\n|}", "{|\n|", "{|\n|\n alpha\n|}", "{|\n|\n!\n|}", "{|\n|\n*alpha\n|}", "{|\n|\n=alpha=\n|}", "{|\n|\nalpha\n\nbeta\n|}", "{|\n|\nalpha\n\n|}", "{|\n|\nalpha\nbeta\n|}", "{|\n|\nalpha \n|}", "{|\n|\n|\n|}", "{|\n|\n|-\n|}", "{|\n|\n|}", "{|\n| alpha\n|}", "{|\n|+\n alpha\n|}", "{|\n|+\n*alpha\n|}", "{|\n|+\n=alpha=\n|}", "{|\n|+\nalpha\n\nbeta\n|}", "{|\n|+\nalpha\nbeta\n|}", "{|\n|+\nalpha\n|}", "{|\n|+\n|+\n|}", "{|\n|+\n|}", "{|\n|+ alpha\n|}", "{|\n|+!!\n|}", "{|\n|+alpha\n\nbeta\n|}", "{|\n|+alpha\nbeta\n|}", "{|\n|+alpha\n|}", "{|\n|+alpha \n|}", "{|\n|+|\n|}", "{|\n|+|alpha|\n|}", "{|\n|+|alpha|beta\n|}", "{|\n|+||\n|}", "{|\n|+||alpha\n|}", "{|\n|+|||\n|}", "{|\n|-\n alpha\n|}", "{|\n|-\n!\n|}", "{|\n|-\n*alpha\n|}", "{|\n|-\n=alpha=\n|}", "{|\n|-\nalpha\n|}", "{|\n|-\n|\n|}", "{|\n|-\n|-\n|}", "{|\n|-\n|}", "{|\n|- alpha\n|}", "{|\n|-alpha\n\n|}", "{|\n|-alpha\n|}", "{|\n|-alpha \n|}", "{|\n|alpha\n\nbeta\n|}", "{|\n|alpha\nbeta\n|}", "{|\n|alpha\nbeta|gamma\n|}", "{|\n|alpha\n|}", "{|\n|alpha!!beta\n|}", "{|\n|alpha!beta\n|}", "{|\n|alpha|\n|}", "{|\n|alpha|beta\n|}", "{|\n|alpha||beta\n|}", "{|\n||\n|}", "{|\n||alpha\n|}", "{|\n|||\n|}", "{|\n||||\n|}", "{|\n|}", "{|\n|}\t\nalpha", "{|\n|}\n\n\nalpha", "{|\n|}\n\nalpha", "{|\n|}\nalpha", "{|\n|} \nalpha", "{|\n|}alpha", "{|alpha\nbeta\n|}", "{|alpha\n|}", ], ), ( "tag", &[ "
", "
", "", "", "beta", "", "", "", " alpha", "alpha", "", "", "
", "
", "", "
", "", "", "beta", "", "", "", " alpha", "alpha", "", "", "
", "
", "alphabeta", "", "", "", "", "\talpha", "\nalpha", " alpha", "", "alpha\t", "alpha\n", "alpha ", "alpha", "alpha", ], ), ( "template", &[ "alpha {{beta}}", "alpha {{beta}} gamma", "alpha{{beta}}", "alpha{{beta}}gamma", "{{\nalpha}}", "{{''}}", "{{alpha", "{{alpha\n|beta}}", "{{alpha\n|}}", "{{alpha\n}}", "{{alpha|", "{{alpha|\nbeta}}", "{{alpha|\n}}", "{{alpha| beta}}", "{{alpha|''}}", "{{alpha|beta", "{{alpha|beta\n=gamma}}", "{{alpha|beta\n}}", "{{alpha|beta =gamma}}", "{{alpha|beta }}", "{{alpha|beta=\ngamma}}", "{{alpha|beta= gamma}}", "{{alpha|beta=gamma\n}}", "{{alpha|beta=gamma }}", "{{alpha|beta=gamma=delta}}", "{{alpha|beta=gamma|delta=epsilon}}", "{{alpha|beta=gamma|delta}}", "{{alpha|beta=gamma}}", "{{alpha|beta=}}", "{{alpha|beta|gamma=delta}}", "{{alpha|beta|gamma}}", "{{alpha|beta}", "{{alpha|beta}}", "{{alpha|beta}} gamma", "{{alpha|beta}}gamma", "{{alpha|}", "{{alpha|}}", "{{alpha}", "{{alpha}}", "{{alpha}} beta", "{{alpha}}beta", "}}", ], ), ];