Minor test extension.

This commit is contained in:
Chris Hodges 2021-07-17 12:51:55 +02:00
parent 63c38f68c3
commit 618a4eee01
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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')