(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestVarEnv(t *testing.T) { |
| 46 | if runtime.GOOS == "windows" { |
| 47 | t.Skipf("this test isn't supported in Windows because it calls POSIX /usr/bin/env") |
| 48 | } |
| 49 | |
| 50 | tests := []test.MurexTest{ |
| 51 | { |
| 52 | Block: ` |
| 53 | $ENV.MurexTestVarEnv00 = "lskdjflsakdjfoiwjef;oweijflsd;kjfweo;ij" |
| 54 | /usr/bin/env -> regexp m/MurexTestVarEnv00/ |
| 55 | `, |
| 56 | Stdout: "MurexTestVarEnv00=lskdjflsakdjfoiwjef;oweijflsd;kjfweo;ij\n", |
| 57 | }, |
| 58 | { |
| 59 | Block: ` |
| 60 | set ENV.MurexTestVarEnv01 = "ertyrtysdf;sldk;flkp;o342--04ik" |
| 61 | /usr/bin/env -> regexp m/MurexTestVarEnv01/ |
| 62 | `, |
| 63 | Stdout: "MurexTestVarEnv01=ertyrtysdf;sldk;flkp;o342--04ik\n", |
| 64 | }, |
| 65 | { |
| 66 | Block: ` |
| 67 | $ENV.MurexTestVarEnv02 = "abc" |
| 68 | $MurexTestVarEnv02 -> debug -> [[ /data-type/murex ]] |
| 69 | `, |
| 70 | Stdout: "str", |
| 71 | }, |
| 72 | { |
| 73 | Block: ` |
| 74 | $ENV.MurexTestVarEnv03 = 123 |
| 75 | $MurexTestVarEnv03 -> debug -> [[ /data-type/murex ]] |
| 76 | `, |
| 77 | Stdout: "str", |
| 78 | }, |
| 79 | } |
| 80 | |
| 81 | test.RunMurexTests(tests, t) |
| 82 | } |
| 83 | |
| 84 | func TestVarDotType(t *testing.T) { |
| 85 | tests := []test.MurexTest{ |
nothing calls this directly
no test coverage detected