UnitTest( list.asp )

Output

Welcome
歡迎光臨
Bienvenido
Bem vindo
환영합니다
ようこそ
Welcome
ようこそ
3
[歡迎光臨, Bem vindo, 환영합니다]

Sources

/axe-ut/list.unit.test.asp

<!--#include virtual="/lib/unit-tests.asp"-->
<!--#include virtual="/lib/axe/classes/Utilities/list.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:lang="en">
    <head>
        <title>AXE - Unit Test - List</title>
        <!--// meta tags //-->
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
        <!--// link tags //-->
        <link rel="stylesheet" type="text/css" media="screen" href="/lib/unit-tests.css" />
    </head>
    <body>
        <div id="container">
            <div id="container-hd">
                <h1>UnitTest( list.asp )</h1>
            </div>
            <div id="container-bd">
 
<h2>Output</h2>
<div class="code"><pre><%
 
dim L, greet : set L = new List
 
L.push("Welcome")
L.push("歡迎光臨")
L.push("Bienvenido")
L.push("Bem vindo")
L.push("환영합니다")
L.push("ようこそ")
 
for each greet in L.items()
    Response.write( greet & vbNewline )
next
 
function bienvenidoDetector(Node)
    bienvenidoDetector = false
    if(Node.data = "Bienvenido") then bienvenidoDetector = true
end function
 
Response.write( L.shift() & vbNewline )
Response.write( L.pop() & vbNewline )
Response.write( L.remove("bienvenidoDetector") & vbNewline )
Response.write( toString(L) )
 
set L = nothing
 
function toString(List)' This is only possible because WE KNOW that the content is a string.
    toString = "[" & join(List.items(), ", ") & "]"
end function
 
%></pre></div>
 
            </div>
            <div id="container-ft">
                <h2>Sources</h2>
                <h3><%= Request.ServerVariables("SCRIPT_NAME") %></h3>
                <div class="code"><%= geshify( loadTextFile( Server.mapPath( Request.ServerVariables("SCRIPT_NAME") ) ), "asp" ) %></div>
            </div>
        </div>
        <!--// javascript tags //-->
    </body>
</html>