<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/lang/min/2" class="C" scope="wmlscriptlib:float" testtype="application" type="auto" source="wmlssl12#7.2" device="both">
  <assertion>When the Lang.min function is called with two values as arguments, and the two values are equal, the first value is returned.
</assertion>
  <notes>test now testable and tightened with typeof check for WAP1.2</notes>
  <specnote>Reclassified to Class A for wmlssl June 2000. The first value is integer 3, the second value is float 3.0. The return of the first value is tested by checking the typeof the return value to be an integer.</specnote>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="<script1>#main('test','card1')"/>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<resulturl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[extern function main(myvar,next) {
	var result = 'fail';

	var tmp = Lang.min(3,3.0);
	if (tmp == 3 &&
		typeof(tmp) == 0) {
		result = 'pass';
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}

]]>
    </script>
  </scripts>
</test>

