[vala] tests: Improve test for bug 620673
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala] tests: Improve test for bug 620673
- Date: Wed, 1 Aug 2012 09:49:50 +0000 (UTC)
commit 11cc71a31783718268e92add3e5f2cebe328a206
Author: JÃrg Billeter <j bitron ch>
Date: Wed Aug 1 11:23:23 2012 +0200
tests: Improve test for bug 620673
tests/methods/bug620673.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/tests/methods/bug620673.vala b/tests/methods/bug620673.vala
index a305a3e..fd6158b 100644
--- a/tests/methods/bug620673.vala
+++ b/tests/methods/bug620673.vala
@@ -1,5 +1,10 @@
void foo (int bar, ...) throws Error {
+ assert (bar == 42);
+ var args = va_list ();
+ int arg = args.arg ();
+ assert (arg == 23);
}
void main () {
-}
\ No newline at end of file
+ foo (42, 23);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]