[vala/wip/valadate: 58/101] minor modifications
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/valadate: 58/101] minor modifications
- Date: Sat, 7 Oct 2017 10:54:51 +0000 (UTC)
commit bfc2669d3908612d31d00dce0ddca325d13e12d3
Author: chebizarro gmail com <chebizarro gmail com>
Date: Fri Jul 15 23:32:57 2016 -0700
minor modifications
valadate/compositetest.vala | 8 ++++----
valadate/testcase.vala | 2 +-
valadate/testsuite.vala | 6 +-----
3 files changed, 6 insertions(+), 10 deletions(-)
---
diff --git a/valadate/compositetest.vala b/valadate/compositetest.vala
index 46ada0f..0be473c 100644
--- a/valadate/compositetest.vala
+++ b/valadate/compositetest.vala
@@ -26,14 +26,14 @@ public abstract class Valadate.CompositeTest : Object, Test {
public abstract int size {get;}
- public virtual TestResult? run(TestResult? result = null) { }
+ public virtual TestResult? run(TestResult? result = null) { return result; }
- public abstract Test get(string testname);
+ public abstract new Test get(string testname);
- public abstract void set(string testname, Test test);
+ public abstract new void set(string testname, Test test);
public abstract bool contains(string testname);
- public virtual TestResult? run_test(string testname, TestResult? result = null) throws TestError {}
+ public abstract new TestResult? run_test(string testname, TestResult? result = null) throws TestError;
}
diff --git a/valadate/testcase.vala b/valadate/testcase.vala
index 76a295d..de65d1c 100644
--- a/valadate/testcase.vala
+++ b/valadate/testcase.vala
@@ -64,7 +64,7 @@ public abstract class Valadate.TestCase : CompositeTest, TestFixture {
- public virtual TestResult? run_test(string testname, TestResult? result = null) throws TestError {
+ public override TestResult? run_test(string testname, TestResult? result = null) throws TestError {
if(!_tests.contains(testname))
throw new TestError.NOT_FOUND("The Test %s was not found", testname);
diff --git a/valadate/testsuite.vala b/valadate/testsuite.vala
index ed4c684..ab77558 100644
--- a/valadate/testsuite.vala
+++ b/valadate/testsuite.vala
@@ -22,9 +22,5 @@
public abstract class Valadate.TestSuite : CompositeTest {
- public abstract void add_test (Test test);
-
- public virtual Test[] tests {get;set;}
-
-
+
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]