File: boolean.tst

package info (click to toggle)
gap 4r4p12-2
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 29,584 kB
  • ctags: 7,113
  • sloc: ansic: 98,786; sh: 3,299; perl: 2,263; makefile: 498; asm: 63; awk: 6
file content (60 lines) | stat: -rw-r--r-- 1,013 bytes parent folder | download | duplicates (3)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#############################################################################
##
#W  boolean.tst                GAP Library                      Thomas Breuer
##
#H  @(#)$Id: boolean.tst,v 4.4.4.4 2005/08/29 14:50:35 gap Exp $
##
#Y  Copyright (C)  1997,  Lehrstuhl D fuer Mathematik,  RWTH Aachen,  Germany
##
##  Exclude from testall.g: too trivial?
##

gap> START_TEST("$Id: boolean.tst,v 4.4.4.4 2005/08/29 14:50:35 gap Exp $");

gap> not true;
false
gap> not false;
true

gap> true = true;
true
gap> true = false;
false
gap> false = true;
false
gap> false = false;
true

gap> true < true;
false
gap> true < false;
true
gap> false < true;
false
gap> false < false;
false

gap> true or true;
true
gap> true or false;
true
gap> false or true;
true
gap> false or false;
false

gap> true and true;
true
gap> true and false;
false
gap> false and true;
false
gap> false and false;
false

gap> STOP_TEST( "boolean.tst", 100000 );

#############################################################################
##
#E