# expect/tcl code to test the das parser and scanner
# jhrg
#

global comp_output		# contains output from das-test_start
global verbose			# this and srcdir are set by runtest.exp
global srcdir

# The variable `test_name' is the name of the das input file for this test.

set test_name test.4

# The variable `test_out' is a string that contains the text that should be
# stored in comp_output by das-test_start. The two strings should match
# exactly.

set test_out "Attributes {
    a {
        String b c;
        Int32 attributes 4;
    }
}"

das-test_start p $srcdir/$test_name

if ![string compare $test_out $comp_output] { # check comp_output
    pass "$test_name"
} else {
    fail "$test_name"
}

# $Log: test.4.exp,v $
# Revision 1.15  2003/01/10 19:46:43  jimg
# Merged with code tagged release-3-2-10 on the release-3-2 branch. In many
# cases files were added on that branch (so they appear on the trunk for
# the first time).
#
# Revision 1.14.4.2  2002/05/31 21:38:42  jimg
# Removed extra space in test_out. Arrgh...
#
# Revision 1.14.4.1  2002/05/31 21:32:58  jimg
# The reserved word `attributes' can be used as the name of an attribute now.
#
# Revision 1.14  2000/09/22 02:52:59  jimg
# Fixes to the tests to recognize some of the new error messages. Also,
# the test drivers were modified to catch the exceptions now thrown by
# some of the parsers.
#
# Revision 1.13  2000/06/16 18:15:01  jimg
# Merged with 3.1.7
#
# Revision 1.12.10.1  2000/06/15 02:24:57  jimg
# Fixed the tests: problems with PATH, etc. broke the tests on my new machine
#
# Revision 1.12  1999/03/24 23:42:22  jimg
# Added or updated for the new simple types (Int16, UInt16 and Float32)
#
# Revision 1.11  1997/05/13 23:29:26  jimg
# *** empty log message ***
#
# Revision 1.10  1997/03/27 18:19:59  jimg
# Update for version 2.13
#
# Revision 1.9  1996/11/13 19:23:45  jimg
# *** empty log message ***
#
# Revision 1.8  1996/08/12 22:22:19  jimg
# Changed for the new error message text from the parser.
#
# Revision 1.7  1996/05/14 15:40:51  jimg
# These changes have already been checked in once before. However, I
# corrupted the source repository and restored it from a 5/9/96 backup
# tape. The previous version's log entry should cover the changes.
#
# Revision 1.6  1994/12/09  21:45:48  jimg
# Modified for new unix.exp.
#
# Revision 1.5  1994/10/13  16:04:12  jimg
# Now works with the new das-test (but only when das-test is compiled
# w/o DEBUG and TRACE_NEW).
#
# Revision 1.4  1994/10/05  16:51:50  jimg
# Added TYPE to each of the DAS test files.
# The `expect' files correcly check for that in the output.
#
# Revision 1.3  1994/09/27  23:14:16  jimg
# Changed expected outcomes to match new das.print() mfunc.
#
# Revision 1.2  1994/09/09  16:15:23  jimg
# Fixed namign of the test (was given as $srcdir//$test_name, should have been
# $srcdir$test_name).
#
# Revision 1.1  1994/08/29  19:57:22  jimg
# Test procedures for the DAS parser, scanner and C++ class.
