<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/lang/abs/3" class="C" scope="wmlscriptlib:float" testtype="application" type="auto" source="wmlssl12#7.1" device="both">
  <assertion>When the Lang.abs function is called with a floating-point value as its argument, it
returns a floating-point type reflecting the absolute value of the argument. 
</assertion>
  <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';

	if (typeof(Lang.abs(4.4)) == 1 &&
		typeof(Lang.abs(-4.0)) == 1) {
			result = 'pass';
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

