File: values.t

package info (click to toggle)
libglib-object-introspection-perl 0.051-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 584 kB
  • sloc: ansic: 3,543; perl: 2,809; makefile: 9; sh: 3
file content (24 lines) | stat: -rw-r--r-- 529 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
#!/usr/bin/env perl

BEGIN { require './t/inc/setup.pl' };

use strict;
use warnings;

plan tests => 3;

{
  my $wrapper = Glib::Object::Introspection::GValueWrapper->new ('Glib::Int', 23);
  is (Regress::test_int_value_arg ($wrapper), 23);
}

is (Regress::test_value_return (23), 23);

SKIP: {
  skip 'more GValue tests', 1
    unless check_gi_version (1, 38, 0);

  my $wrapper = Glib::Object::Introspection::GValueWrapper->new ('Glib::Int', 42);
  GI::gvalue_in_with_modification ($wrapper);
  is ($wrapper->get_value, 24);
}