mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-23 01:18:52 +08:00
[libcxx] [test] Strip trailing whitespace. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@305848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -36,15 +36,15 @@ int main()
|
||||
auto f = for_each_test(0);
|
||||
Iter it = std::for_each_n(Iter(ia), 0, std::ref(f));
|
||||
assert(it == Iter(ia));
|
||||
assert(f.count == 0);
|
||||
assert(f.count == 0);
|
||||
}
|
||||
|
||||
{
|
||||
auto f = for_each_test(0);
|
||||
Iter it = std::for_each_n(Iter(ia), s, std::ref(f));
|
||||
|
||||
|
||||
assert(it == Iter(ia+s));
|
||||
assert(f.count == s);
|
||||
assert(f.count == s);
|
||||
for (unsigned i = 0; i < s; ++i)
|
||||
assert(ia[i] == static_cast<int>(i+1));
|
||||
}
|
||||
@@ -52,9 +52,9 @@ int main()
|
||||
{
|
||||
auto f = for_each_test(0);
|
||||
Iter it = std::for_each_n(Iter(ia), 1, std::ref(f));
|
||||
|
||||
|
||||
assert(it == Iter(ia+1));
|
||||
assert(f.count == 1);
|
||||
assert(f.count == 1);
|
||||
for (unsigned i = 0; i < 1; ++i)
|
||||
assert(ia[i] == static_cast<int>(i+2));
|
||||
}
|
||||
|
Reference in New Issue
Block a user