Changeset View
Changeset View
Standalone View
Standalone View
lib/kdev5-php/duchain/tests/expressionparser.cpp
Context not available. | |||||
552 | Declaration* decl = top->localDeclarations().last(); | 552 | Declaration* decl = top->localDeclarations().last(); | ||
---|---|---|---|---|---|
553 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | 553 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | ||
554 | QVERIFY(type); | 554 | QVERIFY(type); | ||
555 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns a int...", Continue); | 555 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns an int...", Continue); | ||
556 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | 556 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | ||
557 | // fallback | 557 | // fallback | ||
558 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | 558 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | ||
Context not available. | |||||
580 | Declaration* decl = top->localDeclarations().last(); | 580 | Declaration* decl = top->localDeclarations().last(); | ||
581 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | 581 | IntegralType::Ptr type = decl->abstractType().cast<IntegralType>(); | ||
582 | QVERIFY(type); | 582 | QVERIFY(type); | ||
583 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns a int...", Continue); | 583 | QEXPECT_FAIL("", "we'd need advanced array support to know that [0] returns an int...", Continue); | ||
584 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | 584 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeInt)); | ||
585 | // fallback | 585 | // fallback | ||
586 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | 586 | QCOMPARE(type->dataType(), static_cast<uint>(IntegralType::TypeMixed)); | ||
Context not available. |