Minor test extension.
This commit is contained in:
parent
63c38f68c3
commit
618a4eee01
@ -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
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user