[libgee] Correct naming of variables



commit 94dfc97519504b25f17fecb0bcc54966b629d5c5
Author: Maciej Piechotka <uzytkownik2 gmail com>
Date:   Tue Aug 24 12:27:38 2010 +0200

    Correct naming of variables

 tests/testfunctions.vala |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/tests/testfunctions.vala b/tests/testfunctions.vala
index a174873..f71ccc7 100644
--- a/tests/testfunctions.vala
+++ b/tests/testfunctions.vala
@@ -32,7 +32,7 @@ public class FunctionsTests : Gee.TestCase {
 	public void test_string_func () {
 		string one = "one";
 		string two = "two";
-		string twoCopy = two.dup ();
+		string two_copy = two.dup ();
 
 		Gee.EqualDataFunc eq = Gee.Functions.get_equal_func_for (typeof (string));
 		CompareDataFunc cmp = Gee.Functions.get_compare_func_for (typeof (string));
@@ -45,9 +45,9 @@ public class FunctionsTests : Gee.TestCase {
 		assert (cmp (two, two) == 0);
 		assert (hash (two) == hash (two));
 
-		assert (eq (two, twoCopy));
-		assert (cmp (two, twoCopy) == 0);
-		assert (hash (two) == hash (twoCopy));
+		assert (eq (two, two_copy));
+		assert (cmp (two, two_copy) == 0);
+		assert (hash (two) == hash (two_copy));
 
 		assert (!eq (one, two));
 		assert (cmp (one, two) < 0);
@@ -82,7 +82,7 @@ public class FunctionsTests : Gee.TestCase {
 	public void test_compare_func () {
 		MyComparable two = new MyComparable(2);
 		MyComparable one = new MyComparable(1);
-		MyComparable twoCopy = new MyComparable(2);
+		MyComparable two_copy = new MyComparable(2);
 
 		Gee.EqualDataFunc eq = Gee.Functions.get_equal_func_for (typeof (MyComparable));
 		CompareDataFunc cmp = Gee.Functions.get_compare_func_for (typeof (MyComparable));
@@ -96,9 +96,9 @@ public class FunctionsTests : Gee.TestCase {
 		assert (cmp (two, two) == 0);
 		//assert (hash (two) == hash (two));
 
-		assert (eq (two, twoCopy));
-		assert (cmp (two, twoCopy) == 0);
-		//assert (hash (two) == hash (twoCopy));
+		assert (eq (two, two_copy));
+		assert (cmp (two, two_copy) == 0);
+		//assert (hash (two) == hash (two_copy));
 
 		assert (!eq (one, two));
 		assert (cmp (one, two) < 0);
@@ -110,8 +110,8 @@ public class FunctionsTests : Gee.TestCase {
 	public void test_hash_func () {
 		MyHashable two = new MyHashable(2);
 		MyHashable one = new MyHashable(1);
-		MyHashable twoCopy = new MyHashable(2);
-		MyHashable minusOne = new MyHashable(-1);
+		MyHashable two_copy = new MyHashable(2);
+		MyHashable minus_one = new MyHashable(-1);
 
 		Gee.EqualDataFunc eq = Gee.Functions.get_equal_func_for (typeof (MyHashable));
 		CompareDataFunc cmp = Gee.Functions.get_compare_func_for (typeof (MyHashable));
@@ -125,9 +125,9 @@ public class FunctionsTests : Gee.TestCase {
 		assert (cmp (two, two) == 0);
 		assert (hash (two) == hash (two));
 
-		assert (eq (two, twoCopy));
-		assert (cmp (two, twoCopy) == 0);
-		assert (hash (two) == hash (twoCopy));
+		assert (eq (two, two_copy));
+		assert (cmp (two, two_copy) == 0);
+		assert (hash (two) == hash (two_copy));
 
 		assert (!eq (one, two));
 		assert (cmp (one, two) < 0);
@@ -137,7 +137,7 @@ public class FunctionsTests : Gee.TestCase {
 
 		// Check if correct functions taken
 		assert (hash (one) == 1);
-		assert (!eq (minusOne, minusOne));
+		assert (!eq (minus_one, minus_one));
 	}
 
 	private class MyComparable : GLib.Object, Gee.Comparable<MyComparable> {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]