Blob Blame History Raw
# expect/tcl code to test the das parser and scanner
# jhrg
#
# $Log: test.21.exp,v $
# Revision 1.5  2002/06/03 22:21:16  jimg
# Merged with release-3-2-9
#
# Revision 1.3.4.2  2002/02/20 19:11:34  jimg
# Fixed some tests
#
# Revision 1.4  2001/01/26 19:48:10  jimg
# Merged with release-3-2-3.
#
# Revision 1.3.4.1  2000/11/30 05:20:19  jimg
# Added
#
# Revision 1.3  2000/06/16 18:15:01  jimg
# Merged with 3.1.7
#
# Revision 1.1.6.2  2000/06/15 02:24:57  jimg
# Fixed the tests: problems with PATH, etc. broke the tests on my new machine
#
# Revision 1.2  2000/03/31 21:07:04  jimg
# Merged with release-3-1-5
#
# Revision 1.1.6.1  2000/03/31 20:03:26  jimg
# Updated tests for new DAS requirements
#
# Revision 1.1  1999/04/29 00:05:39  jimg
# *** empty log message ***
#
# Revision 1.6  1997/05/13 23:29:18  jimg
# *** empty log message ***
#
# Revision 1.5  1997/03/27 18:19:58  jimg
# Update for version 2.13
#
# Revision 1.4  1996/11/13 19:23:44  jimg
# *** empty log message ***
#
# Revision 1.3  1996/08/12 22:22:18  jimg
# Changed for the new error message text from the parser.
#
# Revision 1.2  1996/04/05 22:00:13  jimg
# Misc Changes for release 2.0.1 of the core software - for developers.
#
# Revision 1.1  1995/02/16  15:34:52  jimg
# Added these tests. See comments in files in parent directory.
#

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.21

# 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 {
    test {
        Float64 f 2.55E300;
        test_dods_errors {
            Float32 g 2.55E300;
            String g_explanation \"`2.55E300' is not a Float32 value.\";
        }
    }
}"

das-test_start p $srcdir/$test_name

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