Added additional builtins for strings and lists
All checks were successful
Build / build (push) Successful in 2m17s

This commit is contained in:
Leon Mika 2025-10-27 22:05:14 +11:00
parent 05f6816c19
commit ebd8c61956
8 changed files with 404 additions and 23 deletions

View file

@ -44,7 +44,8 @@ func TestOS_Exec(t *testing.T) {
want any
}{
{descr: "run command 1", eval: `os:exec "echo" "hello, world"`, want: "hello, world\n"},
{descr: "run command 1", eval: `os:exec "date" "+%Y%m%d"`, want: time.Now().Format("20060102") + "\n"},
{descr: "run command 2", eval: `os:exec "date" "+%Y%m%d"`, want: time.Now().Format("20060102") + "\n"},
{descr: "run command 3", eval: `os:exec "tr" "[a-z]" "[A-Z]" -in "hello"`, want: "HELLO"},
}
for _, tt := range tests {