Skip to content

Commit

Permalink
[python mode] Add regression test for codemirror#4876
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Jul 28, 2017
1 parent 902571b commit 910e3be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mode/python/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
MT("matmulWithSpace:", "[variable a] [operator @] [variable b]");
MT("matmulWithoutSpace:", "[variable a][operator @][variable b]");
MT("matmulSpaceBefore:", "[variable a] [operator @][variable b]");
var before_equal_sign = ["+", "-", "*", "/", "=", "!", ">", "<"];
for (var i = 0; i < before_equal_sign.length; ++i) {
var c = before_equal_sign[i]
MT("before_equal_sign_" + c, "[variable a] [operator " + c + "=] [variable b]");
}

MT("fValidStringPrefix", "[string f'this is a {formatted} string']");
MT("uValidStringPrefix", "[string u'this is an unicode string']");
Expand Down

0 comments on commit 910e3be

Please sign in to comment.