github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/io/read_test.go (about) 1 package io_test 2 3 import ( 4 "testing" 5 6 _ "github.com/lmorg/murex/builtins" 7 "github.com/lmorg/murex/test" 8 ) 9 10 func TestRead(t *testing.T) { 11 tests := []test.MurexTest{ 12 { 13 Block: `bg { read: q "?" }; sleep 2`, 14 Stderr: `background processes cannot read from stdin`, 15 }, 16 } 17 18 test.RunMurexTestsRx(tests, t) 19 }