blob: 18ae529e6f6e532cb7662ade0558d41860142e8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{3}# Tests for Nim
{8}let{0} {16}s{0} {15}={0} {6}"foobar"{0}
{3}# Feature #1260
{15}{.{16}ident{15}.}{0}
{16}stdin{15}.{16}readLine{15}.{16}split{15}.{16}map{15}({16}parseInt{15}).{16}max{15}.{11}`$`{15}.{16}echo{15}({6}" is the maximum!"{15}){0}
{3}# Feature #1261
# IsFuncName("proc") so style ticks as SCE_NIM_FUNCNAME:
{8}proc{0} {12}`$`{0} {15}({16}x{15}:{0} {16}myDataType{15}):{0} {16}string{0} {15}={0} {15}...{0}
{3}# Style ticks as SCE_NIM_BACKTICKS:
{8}if{0} {11}`==`{15}({0} {11}`+`{15}({5}3{15},{5}4{15}),{5}7{15}):{0} {16}echo{0} {6}"True"{0}
|