github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/builtins/core/lists/prepend_test.go (about) 1 package lists_test 2 3 import ( 4 "testing" 5 6 _ "github.com/lmorg/murex/builtins" 7 "github.com/lmorg/murex/test" 8 ) 9 10 func TestPrependRegressionBug(t *testing.T) { 11 tests := []test.MurexTest{ 12 { 13 Block: `set v = foo; $v -> prepend bar`, 14 Stdout: "bar\nfoo\n", 15 }, 16 { 17 Block: `set v = foo; $v -> append bar`, 18 Stdout: "foo\nbar\n", 19 }, 20 } 21 22 test.RunMurexTests(tests, t) 23 }