mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
Make the test more robust.
This commit is contained in:
parent
e0406330fa
commit
99e554e0e0
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ int main()
|
||||||
|
|
||||||
CHECK(a == c, "Terms are shared.");
|
CHECK(a == c, "Terms are shared.");
|
||||||
CHECK(!as<APlus>(a), "Bad convertion returns a zero ATerm.");
|
CHECK(!as<APlus>(a), "Bad convertion returns a zero ATerm.");
|
||||||
CHECK(as<AInt>(a), "Good convertion returns a non-zero ATerm.");
|
CHECK(as<AInt>(a) == a, "Good convertion returns the same ATerm.");
|
||||||
CHECK(e.run(Plus::make(a, Plus::make(b, c))) == 4, "Visitors are working.");
|
CHECK(e.run(Plus::make(a, Plus::make(b, c))) == 4, "Visitors are working.");
|
||||||
return tests - good;
|
return tests - good;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue