Source: site.view [edit]
Function name: testAlias
Arguments:
Description: Tests the alias function, by making sure dist() and distance() return the same value.
Page type: webl
Render function:  
Module: tests

Page source:

var start = "94025";
var finish = "Los Angeles, CA";

var d1 = (WubCall("dist", [start, finish]) ? "0");
var d2 = (WubCall("distance", [start, finish]) ? "0");

var result = ((d1 == d2) and (ToReal(d1) > 0));
result;