/******************************************************************************
 * Copyright (c) ETSI 2017.
 *
 * This file is subject to copyrights owned by ETSI. Non-exclusive permission
 * is hereby granted, free of charge, to copy, reproduce and amend this file
 * under the following conditions: It is provided "as is", without warranty of any
 * kind, expressed or implied.
 * 
 * ETSI shall never be liable for any claim, damages, or other liability arising
 * from its use or inability of use.This permission does not apply to any documentation
 * associated with this file for which ETSI keeps all rights reserved. The present
 * copyright notice shall be included in all copies of whole or part of this
 * file and shall not imply any sub-license right.
 *
 * Modified by: Adrien Kirjak
 *
 ** @version  0.0.1
 ** @purpose  9:A, Ensure the module XSD is available and contains the builtin XSD type NonPositiveInteger
 ** @verdict  pass accept, ttcn3verdict:pass
 ***************************************************/
module Pos_A_ttcn3_module_xsd_018 {

	import from XSD all;

	template NonPositiveInteger m_msg := -3;

    /**
     * @desc The timeout given in seconds after which the test case will be stopped.
     */
    modulepar float PX_TC_EXECUTION_TIMEOUT := 5.0;

    type component C {
    }

    testcase TC_Pos_A_ttcn3_module_xsd_018() runs on C system C {

        // encode the message
        if (isvalue(m_msg) and match(valueof(m_msg), valueof(m_msg))) {
            setverdict(pass, "Built-in XSD type was found and TCI value was created");
        } else {
            setverdict(fail, "Failure to create a value of the given built-in XSD type");
        }
    }

    control {
        execute(TC_Pos_A_ttcn3_module_xsd_018(), PX_TC_EXECUTION_TIMEOUT);
    }

}
