[perl-Glib-Object-Introspection] Make enums.t test more robust
- From: Torsten SchÃnfeld <tsch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [perl-Glib-Object-Introspection] Make enums.t test more robust
- Date: Sat, 10 Dec 2011 00:02:00 +0000 (UTC)
commit d9b5dafd3bb9db50da936988e5ebe64a37636bde
Author: Torsten SchÃnfeld <kaffeetisch gmx de>
Date: Sat Dec 10 01:01:20 2011 +0100
Make enums.t test more robust
For comparing flags, use the overloaded '==' operator directly instead
of letting is() guess.
t/enums.t | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/t/enums.t b/t/enums.t
index 28fe6f8..b412800 100644
--- a/t/enums.t
+++ b/t/enums.t
@@ -9,4 +9,4 @@ plan tests => 3;
is (Regress::test_enum_param ('value1'), 'value1');
is (Regress::test_unsigned_enum_param ('value2'), 'value2');
-is (Regress::global_get_flags_out (), ['flag1', 'flag3']);
+ok (Regress::global_get_flags_out () == ['flag1', 'flag3']);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]