diff --git a/src/test/java/de/platon42/intellij/plugins/m68k/parser/ExpressionsTest.kt b/src/test/java/de/platon42/intellij/plugins/m68k/parser/ExpressionsTest.kt index 6f36798..136a941 100644 --- a/src/test/java/de/platon42/intellij/plugins/m68k/parser/ExpressionsTest.kt +++ b/src/test/java/de/platon42/intellij/plugins/m68k/parser/ExpressionsTest.kt @@ -30,13 +30,12 @@ internal class ExpressionsTest : AbstractParsingTest() { @Test internal fun pure_string_literal(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) { - testGoodSyntax(testCase, "FOO = 'string'\n" - + "FOO=\"bar\"\n") + testGoodSyntax(testCase, "FOO = 'string'\n" + "FOO=\"bar\"\n") } @Test internal fun math_expression(@MyTestCase testCase: ParsingTestExtension.IParsingTestCase) { - testGoodSyntax(testCase, "FOO = -(~(!!(+(1//~WIDTH^@123+3*4/2+(NARF%10|32!21))<<2)>>1)&$1f)\n") + testGoodSyntax(testCase, "FOO = -(~(!!(+(1//~WIDTH^@123+%100101*4/2+(NARF%10|32!21))<<2)>>1)&$1f)\n") } @Test diff --git a/src/test/resources/parser/expressions/math_expression.txt b/src/test/resources/parser/expressions/math_expression.txt index f84af8c..e4ed9fe 100644 --- a/src/test/resources/parser/expressions/math_expression.txt +++ b/src/test/resources/parser/expressions/math_expression.txt @@ -44,7 +44,7 @@ Assembly File: a.asm M68kBinaryDivExprImpl(BINARY_DIV_EXPR) M68kBinaryMulExprImpl(BINARY_MUL_EXPR) M68kLiteralExprImpl(LITERAL_EXPR) - PsiElement(M68kTokenType.DECIMAL)('3') + PsiElement(M68kTokenType.BINARY)('%100101') PsiElement(M68kTokenType.OP_AR_MUL)('*') M68kLiteralExprImpl(LITERAL_EXPR) PsiElement(M68kTokenType.DECIMAL)('4')