Loading ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.ttcn 0 → 100644 +54 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:6.1.7, Verify mapping of an integer element with a minInclusive facet ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Pos_060107_mininclusive_001 { import from schema_Pos_060107_mininclusive_001 language "XSD" all; template E1 m_msg := -5; type universal charstring Raw; type port P message { inout all; } type component C { port P p; } external function matchFile(Raw p_textToMatch, charstring p_filePath, out charstring p_matchError) return boolean; testcase TC_Pos_060107_mininclusive_001() runs on C system C { var Raw v_rcv; var charstring v_matchError; map(self:p, system:p); p.send(m_msg); alt { [] p.check(receive(Raw:?) -> value v_rcv) { if (matchFile(v_rcv, "Pos_060107_mininclusive_001.xml", v_matchError)) { alt { [] p.receive(m_msg) { setverdict(pass); } [] p.receive { setverdict(fail, "XML decoding failure"); } } } else { setverdict(fail, v_matchError); } } [] p.receive { setverdict(fail, "Raw decoding failure"); } } } control { execute(TC_Pos_060107_mininclusive_001(), 5.0); } } ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.xml 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <e1el xmlns="schema:Pos_060107_mininclusive_001" >-5</e1el> ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.xsd 0 → 100644 +11 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="schema:Pos_060107_mininclusive_001" xmlns:types="schema:Pos_060107_mininclusive_001"> <simpleType name="e1"> <restriction base="integer"> <minInclusive value="-5"/> </restriction> </simpleType> <element name="e1el" type="types:e1"/> </schema> ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_002/Pos_060107_mininclusive_002.ttcn 0 → 100644 +54 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:6.1.7, Verify mapping of a float element with a numeric minInclusive value ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Pos_060107_mininclusive_002 { import from schema_Pos_060107_mininclusive_002 language "XSD" all; template E1 m_msg := -5.0; type universal charstring Raw; type port P message { inout all; } type component C { port P p; } external function matchFile(Raw p_textToMatch, charstring p_filePath, out charstring p_matchError) return boolean; testcase TC_Pos_060107_mininclusive_002() runs on C system C { var Raw v_rcv; var charstring v_matchError; map(self:p, system:p); p.send(m_msg); alt { [] p.check(receive(Raw:?) -> value v_rcv) { if (matchFile(v_rcv, "Pos_060107_mininclusive_002.xml", v_matchError)) { alt { [] p.receive(m_msg) { setverdict(pass); } [] p.receive { setverdict(fail, "XML decoding failure"); } } } else { setverdict(fail, v_matchError); } } [] p.receive { setverdict(fail, "Raw decoding failure"); } } } control { execute(TC_Pos_060107_mininclusive_002(), 5.0); } } ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_002/Pos_060107_mininclusive_002.xml 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <e1el xmlns="schema:Pos_060107_mininclusive_002" >-5</e1el> Loading
ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.ttcn 0 → 100644 +54 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:6.1.7, Verify mapping of an integer element with a minInclusive facet ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Pos_060107_mininclusive_001 { import from schema_Pos_060107_mininclusive_001 language "XSD" all; template E1 m_msg := -5; type universal charstring Raw; type port P message { inout all; } type component C { port P p; } external function matchFile(Raw p_textToMatch, charstring p_filePath, out charstring p_matchError) return boolean; testcase TC_Pos_060107_mininclusive_001() runs on C system C { var Raw v_rcv; var charstring v_matchError; map(self:p, system:p); p.send(m_msg); alt { [] p.check(receive(Raw:?) -> value v_rcv) { if (matchFile(v_rcv, "Pos_060107_mininclusive_001.xml", v_matchError)) { alt { [] p.receive(m_msg) { setverdict(pass); } [] p.receive { setverdict(fail, "XML decoding failure"); } } } else { setverdict(fail, v_matchError); } } [] p.receive { setverdict(fail, "Raw decoding failure"); } } } control { execute(TC_Pos_060107_mininclusive_001(), 5.0); } }
ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.xml 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <e1el xmlns="schema:Pos_060107_mininclusive_001" >-5</e1el>
ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_001/Pos_060107_mininclusive_001.xsd 0 → 100644 +11 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="schema:Pos_060107_mininclusive_001" xmlns:types="schema:Pos_060107_mininclusive_001"> <simpleType name="e1"> <restriction base="integer"> <minInclusive value="-5"/> </restriction> </simpleType> <element name="e1el" type="types:e1"/> </schema>
ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_002/Pos_060107_mininclusive_002.ttcn 0 → 100644 +54 −0 Original line number Diff line number Diff line /*************************************************** ** @author STF 475 ** @version 0.0.1 ** @purpose 9:6.1.7, Verify mapping of a float element with a numeric minInclusive value ** @verdict pass accept, ttcn3verdict:pass ***************************************************/ module Pos_060107_mininclusive_002 { import from schema_Pos_060107_mininclusive_002 language "XSD" all; template E1 m_msg := -5.0; type universal charstring Raw; type port P message { inout all; } type component C { port P p; } external function matchFile(Raw p_textToMatch, charstring p_filePath, out charstring p_matchError) return boolean; testcase TC_Pos_060107_mininclusive_002() runs on C system C { var Raw v_rcv; var charstring v_matchError; map(self:p, system:p); p.send(m_msg); alt { [] p.check(receive(Raw:?) -> value v_rcv) { if (matchFile(v_rcv, "Pos_060107_mininclusive_002.xml", v_matchError)) { alt { [] p.receive(m_msg) { setverdict(pass); } [] p.receive { setverdict(fail, "XML decoding failure"); } } } else { setverdict(fail, v_matchError); } } [] p.receive { setverdict(fail, "Raw decoding failure"); } } } control { execute(TC_Pos_060107_mininclusive_002(), 5.0); } }
ATS/06_built_in_data_types/0601_mapping_of_facets/060107_mininclusive/Pos_060107_mininclusive_002/Pos_060107_mininclusive_002.xml 0 → 100644 +4 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <e1el xmlns="schema:Pos_060107_mininclusive_002" >-5</e1el>