File: constants.t

package info (click to toggle)
libtcl-perl 1.02%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 308 kB
  • ctags: 49
  • sloc: perl: 647; sh: 54; tcl: 15; makefile: 5
file content (27 lines) | stat: -rw-r--r-- 536 bytes parent folder | download | duplicates (2)
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
#!perl -w

use strict;
use Test qw(plan ok);

plan tests => 3;

use Tcl;

# These tests are bit lame, as they depend on the actual values,
# but at least it verifies that the constants are set up.

ok(Tcl::OK, 0);
ok(Tcl::ERROR, 1);

ok(Tcl::GLOBAL_ONLY      |
   Tcl::NAMESPACE_ONLY   |
   Tcl::APPEND_VALUE     |
   Tcl::LIST_ELEMENT     |
   Tcl::TRACE_READS      |
   Tcl::TRACE_WRITES     |
   Tcl::TRACE_UNSETS     |
   Tcl::TRACE_DESTROYED  |
   Tcl::INTERP_DESTROYED |
   Tcl::LEAVE_ERR_MSG    |
   Tcl::TRACE_ARRAY,
   0xBFF);