(t *testing.T)
| 262 | } |
| 263 | |
| 264 | func TestIsWindows_Adapter(t *testing.T) { |
| 265 | if !isWindows("Windows") { |
| 266 | t.Error("Windows should be true") |
| 267 | } |
| 268 | if !isWindows("windows") { |
| 269 | t.Error("windows (lowercase) should be true") |
| 270 | } |
| 271 | if isWindows("Linux") { |
| 272 | t.Error("Linux should be false") |
| 273 | } |
| 274 | } |
| 275 | |
| 276 | // --------------------------------------------------------------------------- |
| 277 | // NewShellModule constructor test |