File: segment.vala

package info (click to toggle)
libkkc 0.3.5-11
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,908 kB
  • sloc: ansic: 7,099; makefile: 917; cpp: 435; python: 231; sh: 124
file content (28 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class SegmentTests : Kkc.TestCase {
    public SegmentTests () {
        base ("Segment");

        add_test ("properties", this.test_properties);
    }

    void test_properties () {
        var segment = new Kkc.Segment ("input", "output");
        string input;
        string output;
        segment.get ("input", out input,
                     "output", out output);
        segment.set ("output", output);
    }
}

int main (string[] args) {
    Test.init (ref args);
    Kkc.init ();

    TestSuite root = TestSuite.get_root ();
    root.add_suite (new SegmentTests ().get_suite ());

    Test.run ();

    return 0;
}