[cluttermm] test-interval-creation: Minor whitespace and const fixes.
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cluttermm] test-interval-creation: Minor whitespace and const fixes.
- Date: Fri, 14 Mar 2014 09:35:23 +0000 (UTC)
commit 09163474254d093cad700e7d0ad9b469e145a8f0
Author: Murray Cumming <murrayc murrayc com>
Date: Fri Mar 14 10:35:11 2014 +0100
test-interval-creation: Minor whitespace and const fixes.
tests/test-interval-creation.cc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tests/test-interval-creation.cc b/tests/test-interval-creation.cc
index 0ea62b4..dfc6748 100644
--- a/tests/test-interval-creation.cc
+++ b/tests/test-interval-creation.cc
@@ -62,13 +62,14 @@ int main(int argc, char** argv)
errorval += 100;
}
- double compute_fraction = 0.7;
+ const double compute_fraction = 0.7;
interval2->compute_value( compute_fraction, compute2 );
double compval = dub_a + ( ( dub_b - dub_a ) * compute_fraction );
if( compute2.get() != compval )
{
- std::cout << "Error computing a value with factor = " << compute_fraction << ": " << compute2.get() <<
"; correct value is "<< compval << std::endl;
+ std::cout << "Error computing a value with factor = " << compute_fraction
+ << ": " << compute2.get() << "; correct value is " << compval << std::endl;
errorval += 1000;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]