"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/runnable/testassert.d" between
dmd-2.095.0.tar.gz and dmd-2.095.1.tar.gz

About: DMD (Digital Mars D) is the D reference compiler. D is an object-oriented, imperative, multi-paradigm system programming language.

testassert.d  (dmd-2.095.0):testassert.d  (dmd-2.095.1)
skipping to change at line 224 skipping to change at line 224
} }
assert(getMessage(assert(S(4))) == "S(4) != true"); assert(getMessage(assert(S(4))) == "S(4) != true");
S s = S(4); S s = S(4);
assert(getMessage(assert(*&s)) == "S(4) != true"); assert(getMessage(assert(*&s)) == "S(4) != true");
assert(getMessage(assert(--(++zero))) == "0 != true"); assert(getMessage(assert(--(++zero))) == "0 != true");
} }
void testAssignments()
{
int a = 1;
int b = 2;
assert(getMessage(assert(a -= --b)) == "0 != true");
static ref int c()
{
static int counter;
counter++;
return counter;
}
assert(getMessage(assert(--c())) == "0 != true");
}
void main() void main()
{ {
test8765(); test8765();
test9255(); test9255();
test20114(); test20114();
test20375(); test20375();
testMixinExpression(); testMixinExpression();
testUnaryFormat(); testUnaryFormat();
testAssignments();
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 17 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)