diff options
author | thez3ro <io@thezero.org> | 2017-12-30 16:16:18 +0300 |
---|---|---|
committer | thez3ro <io@thezero.org> | 2018-01-03 14:56:18 +0300 |
commit | 6d046f251ef214c11b8794604d7eebd82ccfa4b7 (patch) | |
tree | b05eeea98e7896b383b999ea39489c3b9324d815 /tests | |
parent | e8030760632f224a85c6b9c19ff890d2811847ee (diff) |
Remove minus since it's an invalid literal
Diffstat (limited to 'tests')
-rw-r--r-- | tests/TestAutoType.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/TestAutoType.cpp b/tests/TestAutoType.cpp index da245d8cb..2f980e546 100644 --- a/tests/TestAutoType.cpp +++ b/tests/TestAutoType.cpp @@ -286,7 +286,7 @@ void TestAutoType::testGlobalAutoTypeRegExp() void TestAutoType::testAutoTypeSyntaxChecks() { // Huge sequence - QCOMPARE(true, AutoType::checkSyntax("{word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{-}~+%@fixedstring")); + QCOMPARE(true, AutoType::checkSyntax("{word 23}{F1 23}{~ 23}{% 23}{^}{F12}{(}{) 23}{[}{[}{]}{Delay=23}{+}{SUBTRACT}~+%@fixedstring")); QCOMPARE(true, AutoType::checkSyntax("{NUMPAD1 3}")); @@ -298,6 +298,10 @@ void TestAutoType::testAutoTypeSyntaxChecks() QCOMPARE(true, AutoType::checkSyntax("{VKEY-EX 0x01}")); // Bad sequence QCOMPARE(false, AutoType::checkSyntax("{{{}}{}{}}{{}}")); + // Good sequence + QCOMPARE(true, AutoType::checkSyntax("{{}{}}{}}{{}")); + QCOMPARE(true, AutoType::checkSyntax("{]}{[}{[}{]}")); + QCOMPARE(true, AutoType::checkSyntax("{)}{(}{(}{)}")); // High DelAY / low delay QCOMPARE(true, AutoType::checkHighDelay("{DelAY 50000}")); QCOMPARE(false, AutoType::checkHighDelay("{delay 50}")); |