Coder Social home page Coder Social logo

testwinrt's Issues

CI loop only builds, doesn't run test

The CI pipeline builds Test.sln, but a) it's using old versions of cppwinrt and b) it doesn't actually run any of the tests
It would be good to run the tests here

TestWinRT will crash when used from CppWinRT

the testwinrt code has this test:

void Collection4Call(Collection4Handler const& handler)
{
    IMapView<hstring, hstring> a = single_threaded_map_view<hstring, hstring>(std::map<hstring, hstring>{ {L"apples", L"1"}, { L"oranges",L"2" }, { L"pears",L"3" } });
    IMapView<hstring, hstring> b;
    IMapView<hstring, hstring> c = handler(a, b);
    TEST_REQUIRE_N(L"Collection", 4, a != b && a != c);
    TEST_REQUIRE_N(L"Collection", 4, std::equal(begin(a), end(a), begin(b), end(b)));
    TEST_REQUIRE_N(L"Collection", 4, std::equal(begin(a), end(a), begin(c), end(c)));

    TEST_REQUIRE_N(L"Collection", 4, c.Lookup(L"apples") == L"1");
    TEST_REQUIRE_N(L"Collection", 4, c.HasKey(L"oranges"));
    IMapView<hstring, hstring> d;
    IMapView<hstring, hstring> e;
    c.Split(d, e);
    TEST_REQUIRE_N(L"Collection", 4, d.Size() && e.Size());
}

However, IMapSplitView<K,V>.Split() is broken in cppwinrt and just nulls out d and e, which will make the TEST_REQUIRE_N at the end fail.

We would need a way to disable this test for cppwinrt

Add collection tests for Object

IInspectable/Object projections are often special cased, so should be exercised specifically - enumerating IIterable in both directions, etc.

Boolean may not be blittable (in C# it's not)

In C#, TestComponent.Blittable is actually a non-blittable struct, due to the Boolean A field. Should move that field to the NonBlittable struct to ensure test coverage of both categories.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.