[libgames-support] tests: Simplify main a bit
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] tests: Simplify main a bit
- Date: Sun, 14 Feb 2016 00:05:23 +0000 (UTC)
commit b3347b0a40349e2ad519165370112d8807541aa8
Author: Michael Catanzaro <mcatanzaro igalia com>
Date: Sat Feb 13 17:46:43 2016 -0600
tests: Simplify main a bit
tests/test-scores.vala | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/tests/test-scores.vala b/tests/test-scores.vala
index c65cc60..1cbfce4 100644
--- a/tests/test-scores.vala
+++ b/tests/test-scores.vala
@@ -153,10 +153,8 @@ public int main (string args[])
{
Test.init (ref args);
var test_suite = TestSuite.get_root ();
- var test_case = new TestCase ("Scores Files Exist", () => {}, test_scores_files_exist, delete_scores);
- test_suite.add (test_case);
- test_case = new TestCase ("Save Score To File", () => {}, test_save_score_to_file, delete_scores);
- test_suite.add (test_case);
+ test_suite.add (new TestCase ("Scores Files Exist", () => {}, test_scores_files_exist, delete_scores));
+ test_suite.add (new TestCase ("Save Score To File", () => {}, test_save_score_to_file, delete_scores));
return Test.run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]