Added bytes builtin
All checks were successful
Build / build (push) Successful in 3m14s

This commit is contained in:
Leon Mika 2026-09-08 19:50:08 +10:00
parent 23f730fb2f
commit 143ca8d555
8 changed files with 415 additions and 2 deletions

View file

@ -46,6 +46,7 @@ func TestOS_Exec(t *testing.T) {
{descr: "run command 1", eval: `os:exec "echo" "hello, world"`, want: "hello, world\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"},
{descr: "run command 4", eval: `os:exec "tr" "-d" "e" -in "hello"`, want: "hllo"},
}
for _, tt := range tests {