[libgee] Fix type parameters in tests
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgee] Fix type parameters in tests
- Date: Tue, 27 Sep 2016 15:30:58 +0000 (UTC)
commit dea939e1f7e6ed3e512bddf46e384283cbdacd1e
Author: Jürg Billeter <j bitron ch>
Date: Tue Sep 27 17:27:32 2016 +0200
Fix type parameters in tests
tests/testreadonlybidirlist.vala | 2 +-
tests/testreadonlylist.vala | 2 +-
tests/testreadonlyset.vala | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/testreadonlybidirlist.vala b/tests/testreadonlybidirlist.vala
index 409e744..d6f558f 100644
--- a/tests/testreadonlybidirlist.vala
+++ b/tests/testreadonlybidirlist.vala
@@ -30,7 +30,7 @@ public class ReadOnlyBidirListTests : ReadOnlyListTests {
}
protected override Collection<string> get_ro_view (Collection<string> collection) {
- return ((Gee.BidirList) collection).read_only_view;
+ return ((Gee.BidirList<string>) collection).read_only_view;
}
public new void test_immutable_iterator () {
diff --git a/tests/testreadonlylist.vala b/tests/testreadonlylist.vala
index 9db5e40..1f0ad92 100644
--- a/tests/testreadonlylist.vala
+++ b/tests/testreadonlylist.vala
@@ -49,7 +49,7 @@ public class ReadOnlyListTests : ReadOnlyCollectionTests {
}
protected override Collection<string> get_ro_view (Collection<string> collection) {
- return ((Gee.List) collection).read_only_view;
+ return ((Gee.List<string>) collection).read_only_view;
}
public new void test_immutable_iterator () {
diff --git a/tests/testreadonlyset.vala b/tests/testreadonlyset.vala
index a573cda..3a853d7 100644
--- a/tests/testreadonlyset.vala
+++ b/tests/testreadonlyset.vala
@@ -41,6 +41,6 @@ public class ReadOnlySetTests : ReadOnlyCollectionTests {
}
protected override Collection<string> get_ro_view (Collection<string> collection) {
- return ((Gee.Set) collection).read_only_view;
+ return ((Gee.Set<string>) collection).read_only_view;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]