# Test use with an alias for a namespace use RE = System.Text.RegularExpressions class AliasUse def main is shared s='foo bar\nbaz\r\nfroob\twap' re = RE.Regex(r'\s+') assert re.split(s).toList == ['foo', 'bar', 'baz', 'froob', 'wap']