Changeset View
Changeset View
Standalone View
Standalone View
lib/kdev4-php/duchain/tests/expressionparser.cpp
Context not available. | |||||
546 | Declaration* decl = top->localDeclarations().last(); | 546 | Declaration* decl = top->localDeclarations().last(); | ||
---|---|---|---|---|---|
547 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | 547 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | ||
548 | QVERIFY(type); | 548 | QVERIFY(type); | ||
549 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns a int...", Continue); | 549 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns an int...", Continue); | ||
550 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | 550 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | ||
551 | // fallback | 551 | // fallback | ||
552 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | 552 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | ||
Context not available. | |||||
574 | Declaration* decl = top->localDeclarations().last(); | 574 | Declaration* decl = top->localDeclarations().last(); | ||
575 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | 575 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | ||
576 | QVERIFY(type); | 576 | QVERIFY(type); | ||
577 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns a int...", Continue); | 577 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns an int...", Continue); | ||
578 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | 578 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | ||
579 | // fallback | 579 | // fallback | ||
580 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | 580 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | ||
Context not available. |