#!/usr/bin/perl 
# Test the configuration file parser.

use strict;                # Standard safety checks.
use gnump3d::config;       # My configuration file reading module.

#
# Read in a pre-created configuration file.
my $file = "testConfigReader.data";
&readConfig( $file );

# 
#  Ensure the file contains 'one = one'.
#
if ( &getConfig( "one" ) ne "one" )
{
    exit 1;
}


#
#  Ensure a missing key isn't found.
#
my %HASH = &getHash();
if ( defined( $HASH{"non-present-key"} ) )
{
    exit;
}


exit 0;
