<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscriptlib/string/replaceat/5" class="C" scope="wmlscriptlib:float" testtype="application" type="auto" source="wmlssl12#9.10" device="both">
  <assertion>When the String.replaceAt function is called with parameters string
String, string Element, number Index, and string Separator, and Index is of
type floating-point, Index is first converted to an integer. Then the function
returns a string in which the Index-th element is replaced with the contents
of Element.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <strings>
    <string id="1">String.replaceAt("zero|one|two|three|four", "new", 9.9, '|') == "zero|one|two|three|new"
</string>
  </strings>
  <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 (<string1>) {
		result = 'pass';
	}
	WMLBrowser.setVar(myvar, result);
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

