Search

February 09, 2023
General »
...n % 2 == 1)) {
        assert(o < odds.length);
        assert(n == odds[o]);
        ++o;
	}
    assert(o == odds...
February 08, 2023
Learn »
...diff = difference(b, a);

    import std.format;
    assert(diff == expected, format!"UNEXPECTED: %s"(diff));
}

Ali
February 08, 2023
General »
...x";
    assert(b.m == "x");
    b.m = a.m;
    assert(b.m == "y");
    static assert...
February 07, 2023
Learn »
...main()
{
    auto bar = Sarr!()(dlang.dup); // complied
    assert(is(typeof(bar.arr[0]) == char));
}
```
😀...
February 07, 2023
Issues »
...sizlim.d
unittest {
   ubyte [0x7fff_ffffU] arr;
   assert (true);
}
$ dmd -unittest -main -run sizlim.d...
February 07, 2023
Issues »
...chalucha@gmail.com

Test case:

```D
version (assert) int foo;

void test()
in (!foo)
{}

void...
February 07, 2023
Learn »
...arr);
  assert(len2.length == 2);

  auto len4 = Sarr!short(addAndReturn(arr)); // add 'f'
  assert(len4...
February 06, 2023
Issues »
...element type.

---

void main()
{
    string[2] arr;
    assert(arr[2] == string.init);
}

---

onlineapp.d(4...
February 06, 2023
Learn »
...0 .. $ / 2];
    alias seconds = args[$ / 2 .. $];

    static assert(firsts.length == seconds.length,
                  "Mismatched number of...
February 06, 2023
Learn »
...writeln("start");

    PGconn* conn = PQconnectdb("connection string");
    assert(conn !is null);
    PQfinish(conn);

    writeln("end...
102 103 104 105 106 107 108 109 110 111 112
Next ›   Last »