~ubuntu-branches/ubuntu/hardy/vala/hardy

« back to all changes in this revision

Viewing changes to tests/test-027.vala

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge, Marc-Andre Lureau, Sebastian Dröge
  • Date: 2007-10-15 14:37:51 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071015143751-zy7hqcyjutdyfkg3
Tags: 0.1.4-1
[ Marc-Andre Lureau ]
* New Upstream Version
* debian/patches:
  + Remove patch no longer needed in 0.1.4
* debian/rules
  + Add xsltproc build dependency for the Vala manual.
  + Add libenchant-dev build dependency for enchant test case.
* debian/control, debian/vala-doc.install:
  + Add a "vala-doc" documentation package.

[ Sebastian Dröge ]
* debian/control:
  + Let vala-doc suggest valac/devhelp and don't depend on libvala0.
* debian/libvala-dev.install:
  + Add the new vapicheck utility.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using GLib;
2
2
 
3
 
class Maman.Bar {
 
3
class Maman.Bar : Object {
4
4
        public int foo { get; set; }
5
5
 
6
6
        public void run () {
47
47
                stdout.printf (" %d", foo + 2);
48
48
        }
49
49
 
50
 
        static int main (string[] args) {
 
50
        static void test_postfix_and_prefix_expressions () {
51
51
                stdout.printf ("Postfix and Prefix Expression Test: 1");
52
52
                
53
53
                var bar = new Bar ();
54
54
                bar.run ();
55
55
 
56
56
                stdout.printf (" 18\n");
57
 
                
 
57
        }
 
58
 
 
59
        static void test_prefix_increment_in_loop () {
 
60
                stdout.printf ("Prefix Increment in Loop Test: ");
 
61
 
 
62
                int i = 0, j = 0;
 
63
 
 
64
                do {
 
65
                        stdout.printf (" %d", i);
 
66
                        j = j + 1;
 
67
                } while (++i < 10 && j < 15);
 
68
 
 
69
                stdout.printf (" %d\n", i);
 
70
        }
 
71
 
 
72
        static int main (string[] args) {
 
73
                test_postfix_and_prefix_expressions ();
 
74
                test_prefix_increment_in_loop ();
 
75
 
58
76
                return 0;
59
77
        }
60
78
}